summaryrefslogtreecommitdiffstats
path: root/ftplugin/nim.vim
blob: 5f3e93d00e953602cd11f02fe8fd43fb95fe0fa8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1
  
if exists("b:nim_loaded")
  finish
endif

let b:nim_loaded = 1

let s:cpo_save = &cpo
set cpo&vim

call nim#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 nim

let &cpo = s:cpo_save
unlet s:cpo_save


endif