aboutsummaryrefslogtreecommitdiff
path: root/vim/bundle/vim-snippets/snippets/elm.snippets
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
committerKarel Kočí <cynerd@email.cz>2016-06-30 16:03:25 +0200
commite573b3020c032400eed60b649a2cbf55266e6bb0 (patch)
tree8f572394ac8433529c7a8e70d160a2fbe8268b4e /vim/bundle/vim-snippets/snippets/elm.snippets
parentb8c667bd64b3edd38d56c63c5bd1db53a23b4499 (diff)
downloadmyconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.gz
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.tar.bz2
myconfigs-e573b3020c032400eed60b649a2cbf55266e6bb0.zip
Add current configurations from old repository
Diffstat (limited to 'vim/bundle/vim-snippets/snippets/elm.snippets')
-rw-r--r--vim/bundle/vim-snippets/snippets/elm.snippets50
1 files changed, 50 insertions, 0 deletions
diff --git a/vim/bundle/vim-snippets/snippets/elm.snippets b/vim/bundle/vim-snippets/snippets/elm.snippets
new file mode 100644
index 0000000..6a15c83
--- /dev/null
+++ b/vim/bundle/vim-snippets/snippets/elm.snippets
@@ -0,0 +1,50 @@
+snippet mod
+ module `substitute(substitute(expand('%:r'), '[/\\]','.','g'),'^\%(\l*\.\)\?','','')` exposing (${1})
+ ${0}
+snippet imp
+ import ${0:List}
+snippet impe
+ import ${1:List} exposing (${0:map})
+snippet fn
+ ${1:fn} : ${2:a} -> ${3:a}
+ $1 ${4} =
+ ${0}
+snippet fn1
+ ${1:fn} : ${2:a} -> ${3:a}
+ $1 ${4} =
+ ${0}
+snippet fn2
+ ${1:fn} : ${2:a} -> ${3:a} -> ${4:a}
+ $1 ${5} =
+ ${0}
+snippet fn3
+ ${1:fn} : ${2:a} -> ${3:a} -> ${4:a} -> ${5:a}
+ $1 ${6} =
+ ${0}
+snippet fn0
+ ${1:fn} : ${2:a}
+ $1 =
+ ${0}
+snippet case
+ case ${1} of
+ ${2} ->
+ ${0}
+snippet -
+ ${1} ->
+ ${0}
+snippet let
+ let
+ ${1} = ${2}
+ in
+ ${0}
+snippet if
+ if ${1} then
+ ${2}
+ else
+ ${0}
+snippet ty
+ type ${1:Msg}
+ = ${0}
+snippet tya
+ type alias ${1:Model} =
+ ${0}