syntax/c.vim: Bremse ausgebaut

ftplugin/c.vim: matchit für Lint -save ... -restore

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@158 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
stefan 2008-04-23 13:10:02 +00:00
parent f029fbcf8b
commit e883e25a8a
2 changed files with 5 additions and 2 deletions

View File

@ -49,6 +49,9 @@ setlocal spell
" Grep options " Grep options
let b:GrepFiles = '*.c *.h' let b:GrepFiles = '*.c *.h'
" matchit.vim
let b:match_words = '\<lint\s\+-save\>:\<lint\s\+-restore\>'
" Adding spaces where needed " Adding spaces where needed
" -------------------------- " --------------------------
let s:nonOperator = '[^=!+-\*/<>]' let s:nonOperator = '[^=!+-\*/<>]'

View File

@ -26,8 +26,8 @@ syntax region myFold start="{" end="}" transparent fold
syntax region if0Fold start="^\s*#\s*if\s\+0\+\>" end="^\s*#\s*endif" fold containedin=cPreCondit syntax region if0Fold start="^\s*#\s*if\s\+0\+\>" end="^\s*#\s*endif" fold containedin=cPreCondit
let c_no_if0 = 1 let c_no_if0 = 1
syntax sync fromstart syntax sync fromstart
set foldmethod=syntax "set foldmethod=syntax
set nofoldenable "set nofoldenable
" Folds for #ifdef " Folds for #ifdef
command! -nargs=0 FoldDefine call FoldDefine(<args>) command! -nargs=0 FoldDefine call FoldDefine(<args>)