diff options
author | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2016-06-30 16:03:25 +0200 |
commit | e573b3020c032400eed60b649a2cbf55266e6bb0 (patch) | |
tree | 8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/dart.snippets | |
parent | b8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff) | |
download | myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2 myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip |
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/dart.snippets')
-rw-r--r-- | vim/bundle/vim-snippets/snippets/dart.snippets | 82 |
1 files changed, 82 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/dart.snippets b/vim/bundle/vim-snippets/snippets/dart.snippets new file mode 100644 index 0000000..0093f2b --- /dev/null +++ b/vim/bundle/vim-snippets/snippets/dart.snippets @@ -0,0 +1,82 @@ +snippet lib + #library('${1}'); + ${0} +snippet im + #import('${1}'); + ${0} +snippet so + #source('${1}'); + ${0} +snippet main + static void main() { + ${0} + } +snippet st + static ${0} +snippet fi + final ${0} +snippet re + return ${0} +snippet br + break; +snippet th + throw ${0} +snippet cl + class ${1:`vim_snippets#Filename("", "untitled")`} ${0} +snippet in + interface ${1:`vim_snippets#Filename("", "untitled")`} ${0} +snippet imp + implements ${0} +snippet ext + extends ${0} +snippet if + if (${1:true}) { + ${0} + } +snippet ife + if (${1:true}) { + ${2} + } else { + ${0} + } +snippet el + else +snippet sw + switch (${1}) { + ${0} + } +snippet cs + case ${1}: + ${0} +snippet de + default: + ${0} +snippet for + for (var ${2:i} = 0, len = ${1:things}.length; $2 < len; ${3:++}$2) { + ${0:$1[$2]} + } +snippet fore + for (final ${2:item} in ${1:itemList}) { + ${0} + } +snippet wh + while (${1:/* condition */}) { + ${0} + } +snippet dowh + do { + ${0} + } while (${0:/* condition */}); +snippet as + assert(${0:/* condition */}); +snippet try + try { + ${0} + } catch (${1:Exception e}) { + } +snippet tryf + try { + ${0} + } catch (${1:Exception e}) { + } finally { + } |