nim.vim/ftplugin/nimrod.vim
2014-03-06 11:35:47 +02:00

23 lines
398 B
VimL

if exists("b:nimrod_loaded")
finish
endif
let b:nimrod_loaded = 1
let s:cpo_save = &cpo
set cpo&vim
call nimrod#init()
setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:##,:#
setlocal commentstring=#\ %s
setlocal omnifunc=NimComplete
setlocal suffixesadd=.nim
setlocal expandtab "Make sure that only spaces are used
compiler nimrod
let &cpo = s:cpo_save
unlet s:cpo_save