mirror of
https://github.com/amix/vimrc
synced 2025-06-16 01:25:00 +08:00
Updated plugins and added vim-markdown
This commit is contained in:
36
sources_non_forked/vim-snippets/snippets/kotlin.snippets
Normal file
36
sources_non_forked/vim-snippets/snippets/kotlin.snippets
Normal file
@ -0,0 +1,36 @@
|
||||
snippet fun
|
||||
fun ${1:name}(${2}): ${3:String} {
|
||||
${4}
|
||||
}
|
||||
snippet pfun
|
||||
private fun ${1:name}(${2}): ${3:String} {
|
||||
${4}
|
||||
}
|
||||
snippet ret
|
||||
return ${0}
|
||||
snippet whe
|
||||
when (${1:${VISUAL}}) {
|
||||
${2} -> ${3}
|
||||
}
|
||||
snippet cla
|
||||
class ${1} {
|
||||
${0:${VISUAL}}
|
||||
}
|
||||
snippet cobj
|
||||
companion object {
|
||||
${0:${VISUAL}}
|
||||
}
|
||||
snippet obj
|
||||
object ${1} {
|
||||
${0:${VISUAL}}
|
||||
}
|
||||
snippet if
|
||||
if (${1}) {
|
||||
${0:${VISUAL}}
|
||||
}
|
||||
snippet ife
|
||||
if (${1}) {
|
||||
${2:${VISUAL}}
|
||||
} else {
|
||||
${0}
|
||||
}
|
Reference in New Issue
Block a user