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.
22 lines
341 B
VimL
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
|
|
|