diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2016-01-22 09:08:30 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2016-01-22 09:08:30 +0100 |
commit | 2bde381723b9604dccb5b9dbe4588a0251ad8544 (patch) | |
tree | 4249bc219a363482c5f0e184a79eefdddb43783f /compiler/nim.vim | |
parent | 61390f58850c34b27d2a28dc14ebd760de152cc9 (diff) | |
download | vim-polyglot-2bde381723b9604dccb5b9dbe4588a0251ad8544.tar.gz vim-polyglot-2bde381723b9604dccb5b9dbe4588a0251ad8544.zip |
Add nim supportv2.7.0
Diffstat (limited to 'compiler/nim.vim')
-rw-r--r-- | compiler/nim.vim | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/compiler/nim.vim b/compiler/nim.vim new file mode 100644 index 00000000..47886ed3 --- /dev/null +++ b/compiler/nim.vim @@ -0,0 +1,27 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'nim') == -1 + +if exists("current_compiler") + finish +endif + +let current_compiler = "nim" + +if exists(":CompilerSet") != 2 " older Vim always used :setlocal + command -nargs=* CompilerSet setlocal <args> +endif + +let s:cpo_save = &cpo +set cpo-=C + +CompilerSet makeprg=nim\ c\ $* + +CompilerSet errorformat= + \%-GHint:\ %m, + \%E%f(%l\\,\ %c)\ Error:\ %m, + \%W%f(%l\\,\ %c)\ Hint:\ %m + +let &cpo = s:cpo_save +unlet s:cpo_save + + +endif |