few fixes for the commenting and line wrapping behaviour
This commit is contained in:
parent
32b82b89cf
commit
44750377f7
2 changed files with 15 additions and 0 deletions
|
|
@ -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:
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue