nim.vim/ftplugin/nimrod.vim
Zahary Karadjov ffc49b7c2a the caas service is fully integrated now.
this commit enables it by default if your project has a nimrod.cfg config, but
the results won't be satisfactory as the compiler still cannot survive the long-
running interaction with the IDE and breaks after a couple of commands.
2013-05-01 21:24:10 +03:00

22 lines
341 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
compiler nimrod
let &cpo = s:cpo_save
unlet s:cpo_save