few fixes for the commenting and line wrapping behaviour

This commit is contained in:
Zahary Karadjov 2011-08-26 15:48:16 +03:00
commit 44750377f7
2 changed files with 15 additions and 0 deletions

View file

@ -8,6 +8,9 @@ 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=nimrod\ c\ $*
CompilerSet errorformat=
@ -15,3 +18,8 @@ CompilerSet errorformat=
\%f(%l,\ %c)\ Hint:\ %m,
\%f(%l,\ %c)\ Warning:\ %m
let &cpo = s:cpo_save
unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8:

View file

@ -7,3 +7,10 @@ let b:did_ftplugin = 1
let s:cpo_save = &cpo
set cpo&vim
setlocal formatoptions-=t formatoptions+=croql
setlocal comments=:#
setlocal commentstring=#\ %s
let &cpo = s:cpo_save
unlet s:cpo_save