summaryrefslogtreecommitdiffstats
path: root/ftplugin/elm.vim
diff options
context:
space:
mode:
Diffstat (limited to 'ftplugin/elm.vim')
-rw-r--r--ftplugin/elm.vim28
1 files changed, 20 insertions, 8 deletions
diff --git a/ftplugin/elm.vim b/ftplugin/elm.vim
index c989d922..b2423c29 100644
--- a/ftplugin/elm.vim
+++ b/ftplugin/elm.vim
@@ -43,14 +43,26 @@ setlocal comments=:--
setlocal commentstring=--\ %s
" Commands
-command! -buffer -nargs=? -complete=file ElmMake call elm#Make(<f-args>)
-command! -buffer ElmMakeMain call elm#Make("Main.elm")
-command! -buffer -nargs=? -complete=file ElmTest call elm#Test(<f-args>)
-command! -buffer ElmRepl call elm#Repl()
-command! -buffer ElmErrorDetail call elm#ErrorDetail()
-command! -buffer ElmShowDocs call elm#ShowDocs()
-command! -buffer ElmBrowseDocs call elm#BrowseDocs()
-command! -buffer ElmFormat call elm#Format()
+command -buffer -nargs=? -complete=file ElmMake call elm#Make(<f-args>)
+command -buffer ElmMakeMain call elm#Make("Main.elm")
+command -buffer -nargs=? -complete=file ElmTest call elm#Test(<f-args>)
+command -buffer ElmRepl call elm#Repl()
+command -buffer ElmErrorDetail call elm#ErrorDetail()
+command -buffer ElmShowDocs call elm#ShowDocs()
+command -buffer ElmBrowseDocs call elm#BrowseDocs()
+command -buffer ElmFormat call elm#Format()
+
+" Commands cleanup
+let b:undo_ftplugin = "
+ \ delcommand ElmMake
+ \|delcommand ElmMakeMain
+ \|delcommand ElmTest
+ \|delcommand ElmRepl
+ \|delcommand ElmErrorDetail
+ \|delcommand ElmShowDocs
+ \|delcommand ElmBrowseDocs
+ \|delcommand ElmFormat
+ \"
if get(g:, 'elm_setup_keybindings', 1)
nmap <buffer> <LocalLeader>m <Plug>(elm-make)