set/setlocal korrigiert

git-svn-id: https://vimsuite.svn.sourceforge.net/svnroot/vimsuite/trunk@207 eb2d0018-73a3-4aeb-bfe9-1def61c9ec69
This commit is contained in:
alterdepp 2011-08-29 07:45:42 +00:00
parent 4ceabde4b4
commit 9adfeaf888
20 changed files with 51 additions and 51 deletions

View File

@ -19,24 +19,24 @@ execute('source ' . $VIMRUNTIME . '/compiler/gcc.vim')
" ------- " -------
" PC-Lint " PC-Lint
" ------- " -------
"setlocal errorformat+=\"%f\"\\,\ line\ %l:\ %t%.%#\ \(pclint:%n\):%m "set errorformat+=\"%f\"\\,\ line\ %l:\ %t%.%#\ \(pclint:%n\):%m
"setlocal errorformat+=%t%.%#\ \(pclint:%n\):%m "set errorformat+=%t%.%#\ \(pclint:%n\):%m
" ------- " -------
" SP-Lint " SP-Lint
" ------- " -------
setlocal errorformat+=%A%f\(%l\):\ %m set errorformat+=%A%f\(%l\):\ %m
setlocal errorformat+=%A%f\(%l\): set errorformat+=%A%f\(%l\):
setlocal errorformat+=%A%f\(%l\\,%c\):\ %m set errorformat+=%A%f\(%l\\,%c\):\ %m
setlocal errorformat+=%A%f\(%l\\,%c\): set errorformat+=%A%f\(%l\\,%c\):
setlocal errorformat+=%C\ \ \ \ %m set errorformat+=%C\ \ \ \ %m
" ----- " -----
" Tools " Tools
" ----- " -----
setlocal errorformat+=%+G%.%#.exe:\ %m set errorformat+=%+G%.%#.exe:\ %m
setlocal errorformat+=%+G%.%#.exe[%*\\d]:\ ***\ %m set errorformat+=%+G%.%#.exe[%*\\d]:\ ***\ %m
" Error format from other programs: ...: ... " Error format from other programs: ...: ...
"setlocal errorformat+=%+G%f:\ %m "set errorformat+=%+G%f:\ %m
let current_compiler = 'gcc-special' let current_compiler = 'gcc-special'

View File

@ -6,7 +6,7 @@ let current_compiler = "java"
"let &makeprg = "/usr/java/current/bin/javac %:p" "let &makeprg = "/usr/java/current/bin/javac %:p"
"setlocal shellpipe=2> "set shellpipe=2>
"set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m "set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m
"set errorformat+=%C%m "set errorformat+=%C%m

View File

@ -10,7 +10,7 @@ let current_compiler = "pascal"
"let &makeprg = "\\tools\\python\\v2.1a2\\python %:p" "let &makeprg = "\\tools\\python\\v2.1a2\\python %:p"
"setlocal shellpipe=2> "set shellpipe=2>
"set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m "set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m
"set errorformat+=%C%m "set errorformat+=%C%m

View File

@ -14,7 +14,7 @@ let current_compiler = "python"
set makeprg=python\ -c\ \"import\ py_compile;\ py_compile.compile('%')\" set makeprg=python\ -c\ \"import\ py_compile;\ py_compile.compile('%')\"
"let &makeprg = g:python . ' -c "print \"hallo welt\"; print \"ende\""' "let &makeprg = g:python . ' -c "print \"hallo welt\"; print \"ende\""'
setlocal shellpipe=2> set shellpipe=2>
set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m set errorformat+=%E%\\s%#File\ \"%f\"\\,\ line\ %l\\,\ %m
set errorformat+=%C%m set errorformat+=%C%m

View File

@ -11,8 +11,8 @@ let current_compiler = 'python'
let &makeprg = 'python %:p' let &makeprg = 'python %:p'
"setlocal shellpipe=> "set shellpipe=>
setlocal shellpipe=2> set shellpipe=2>
"let &shellpipe = '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe') "let &shellpipe = '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe')
"let &shellpipe = '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe') "let &shellpipe = '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe')
" \ PathNormpath(make_log) '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe') " \ PathNormpath(make_log) '|' PathNormpath('e:/tools/gnu/shutils/bin/tee.exe')

View File

@ -1,2 +1,2 @@
autocmd BufRead,BufNewFile *.a2l set filetype=a2l autocmd BufRead,BufNewFile *.a2l setlocal filetype=a2l
autocmd BufRead,BufNewFile *.x2l set filetype=a2l autocmd BufRead,BufNewFile *.x2l setlocal filetype=a2l

View File

@ -1,6 +1,6 @@
autocmd BufRead,BufNewFile /usr/include/*/* set filetype=c autocmd BufRead,BufNewFile /usr/include/*/* setlocal filetype=c
autocmd BufRead,BufNewFile *.d set filetype=c autocmd BufRead,BufNewFile *.d setlocal filetype=c
autocmd BufRead,BufNewFile *.dat set filetype=c autocmd BufRead,BufNewFile *.dat setlocal filetype=c
autocmd BufRead,BufNewFile *.i set filetype=c autocmd BufRead,BufNewFile *.i setlocal filetype=c
autocmd BufRead,BufNewFile *.h.merge* set filetype=c autocmd BufRead,BufNewFile *.h.merge* setlocal filetype=c
autocmd BufRead,BufNewFile *.c.merge* set filetype=c autocmd BufRead,BufNewFile *.c.merge* setlocal filetype=c

View File

@ -1,4 +1,4 @@
autocmd BufRead,BufNewFile *.paf set filetype=paf autocmd BufRead,BufNewFile *.paf setlocal filetype=paf
autocmd BufRead,BufNewFile *.daf set filetype=paf autocmd BufRead,BufNewFile *.daf setlocal filetype=paf
autocmd BufRead,BufNewFile *.0pa set filetype=paf autocmd BufRead,BufNewFile *.0pa setlocal filetype=paf
autocmd BufRead,BufNewFile *.0da set filetype=paf autocmd BufRead,BufNewFile *.0da setlocal filetype=paf

View File

@ -1,3 +1,3 @@
autocmd BufRead,BufNewFile SConstruct set filetype=scons autocmd BufRead,BufNewFile SConstruct setlocal filetype=scons
autocmd BufRead,BufNewFile SConscript set filetype=scons autocmd BufRead,BufNewFile SConscript setlocal filetype=scons
autocmd BufRead,BufNewFile *.SConscript set filetype=scons autocmd BufRead,BufNewFile *.SConscript setlocal filetype=scons

View File

@ -1 +1 @@
autocmd BufRead,BufNewFile *.tex set filetype=tex autocmd BufRead,BufNewFile *.tex setlocal filetype=tex

View File

@ -1 +1 @@
autocmd BufRead,BufNewFile *.cmm set filetype=trace autocmd BufRead,BufNewFile *.cmm setlocal filetype=trace

View File

@ -1 +1 @@
autocmd BufRead,BufNewFile *.uc set filetype=uc autocmd BufRead,BufNewFile *.uc setlocal filetype=uc

View File

@ -12,14 +12,14 @@ let &l:tabstop = s:tabwidth
" spaces for tabs " spaces for tabs
"let &softtabstop = s:tabwidth "let &softtabstop = s:tabwidth
" smart indent tabs (use spaces for indent else tabs) " smart indent tabs (use spaces for indent else tabs)
"set smarttab "setlocal smarttab
" use spaces for tabs " use spaces for tabs
setlocal expandtab setlocal expandtab
" autoindent " autoindent
" indent mode - one of autoindent, smartindent or cindent " indent mode - one of autoindent, smartindent or cindent
" set autoindent " setlocal autoindent
" set smartindent " setlocal smartindent
setlocal cindent setlocal cindent
setlocal cinoptions=*200,)100,(s,w1,W4 setlocal cinoptions=*200,)100,(s,w1,W4
let &l:shiftwidth = s:tabwidth let &l:shiftwidth = s:tabwidth

View File

@ -193,9 +193,9 @@ endfunction
" echo HexStatusLine() " echo HexStatusLine()
"endfunction "endfunction
command! HexStatusLine set statusline=%!HexStatusLine() command! HexStatusLine setlocal statusline=%!HexStatusLine()
command! HexStatusLineOff set statusline= command! HexStatusLineOff setlocal statusline=
" Always update statusline with HEX info " Always update statusline with HEX info
set statusline=%!HexStatusLine() setlocal statusline=%!HexStatusLine()
" Always show statusline " Always show statusline
set laststatus=2 setlocal laststatus=2

View File

@ -5,7 +5,7 @@ setlocal shiftwidth=2
setlocal expandtab setlocal expandtab
setlocal tabstop=8 setlocal tabstop=8
"set autoindent "setlocal autoindent
compiler java compiler java

View File

@ -1,7 +1,7 @@
" Stefans vim-file plugin " Stefans vim-file plugin
" Add Menu-Bar " Add Menu-Bar
set guioptions+=m setlocal guioptions+=m
" benutze Makefile " benutze Makefile
let g:Tex_UseMakefile = 1 let g:Tex_UseMakefile = 1

View File

@ -70,7 +70,7 @@ function s:CVSshowDifferences(filename)
let patchfile = tempname() let patchfile = tempname()
echo 'patchfile: ' . patchfile echo 'patchfile: ' . patchfile
call s:CVSdiff(a:filename, patchfile) call s:CVSdiff(a:filename, patchfile)
set patchexpr=ReversePatch() setlocal patchexpr=ReversePatch()
execute 'vertical diffpatch ' . patchfile execute 'vertical diffpatch ' . patchfile
endfunction endfunction

View File

@ -922,10 +922,10 @@ endfunction
command DiffOff call DiffOff() command DiffOff call DiffOff()
function DiffOff() function DiffOff()
set nodiff setlocal nodiff
set noscrollbind setlocal noscrollbind
set foldcolumn=0 setlocal foldcolumn=0
set foldmethod=syntax setlocal foldmethod=syntax
endfunction endfunction
" options for DirDiff " options for DirDiff

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 "setlocal foldmethod=syntax
"set nofoldenable "setlocal nofoldenable
" Folds for #ifdef " Folds for #ifdef
command! -nargs=0 FoldDefine call FoldDefine(<args>) command! -nargs=0 FoldDefine call FoldDefine(<args>)
@ -49,7 +49,7 @@ function! FoldDefine ()
execute command execute command
execute 'highlight def link ' . foldname . ' Comment' execute 'highlight def link ' . foldname . ' Comment'
syntax sync fromstart syntax sync fromstart
set foldmethod=syntax setlocal foldmethod=syntax
execute 'normal `x' execute 'normal `x'
endfunction endfunction

View File

@ -1,4 +1,4 @@
syntax region myFold start="{" end="}" transparent fold syntax region myFold start="{" end="}" transparent fold
syntax sync fromstart syntax sync fromstart
set foldmethod=syntax setlocal foldmethod=syntax