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:
parent
4ceabde4b4
commit
9adfeaf888
@ -19,24 +19,24 @@ execute('source ' . $VIMRUNTIME . '/compiler/gcc.vim')
|
||||
" -------
|
||||
" PC-Lint
|
||||
" -------
|
||||
"setlocal errorformat+=\"%f\"\\,\ line\ %l:\ %t%.%#\ \(pclint:%n\):%m
|
||||
"setlocal errorformat+=%t%.%#\ \(pclint:%n\):%m
|
||||
"set errorformat+=\"%f\"\\,\ line\ %l:\ %t%.%#\ \(pclint:%n\):%m
|
||||
"set errorformat+=%t%.%#\ \(pclint:%n\):%m
|
||||
" -------
|
||||
" SP-Lint
|
||||
" -------
|
||||
setlocal errorformat+=%A%f\(%l\):\ %m
|
||||
setlocal errorformat+=%A%f\(%l\):
|
||||
setlocal errorformat+=%A%f\(%l\\,%c\):\ %m
|
||||
setlocal errorformat+=%A%f\(%l\\,%c\):
|
||||
setlocal errorformat+=%C\ \ \ \ %m
|
||||
set errorformat+=%A%f\(%l\):\ %m
|
||||
set errorformat+=%A%f\(%l\):
|
||||
set errorformat+=%A%f\(%l\\,%c\):\ %m
|
||||
set errorformat+=%A%f\(%l\\,%c\):
|
||||
set errorformat+=%C\ \ \ \ %m
|
||||
|
||||
" -----
|
||||
" Tools
|
||||
" -----
|
||||
setlocal errorformat+=%+G%.%#.exe:\ %m
|
||||
setlocal errorformat+=%+G%.%#.exe[%*\\d]:\ ***\ %m
|
||||
set errorformat+=%+G%.%#.exe:\ %m
|
||||
set errorformat+=%+G%.%#.exe[%*\\d]:\ ***\ %m
|
||||
|
||||
" Error format from other programs: ...: ...
|
||||
"setlocal errorformat+=%+G%f:\ %m
|
||||
"set errorformat+=%+G%f:\ %m
|
||||
|
||||
let current_compiler = 'gcc-special'
|
||||
|
@ -6,7 +6,7 @@ let current_compiler = "java"
|
||||
|
||||
|
||||
"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+=%C%m
|
||||
|
@ -10,7 +10,7 @@ let current_compiler = "pascal"
|
||||
|
||||
|
||||
"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+=%C%m
|
||||
|
@ -14,7 +14,7 @@ let current_compiler = "python"
|
||||
set makeprg=python\ -c\ \"import\ py_compile;\ py_compile.compile('%')\"
|
||||
"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+=%C%m
|
||||
|
@ -11,8 +11,8 @@ let current_compiler = 'python'
|
||||
|
||||
|
||||
let &makeprg = 'python %:p'
|
||||
"setlocal shellpipe=>
|
||||
setlocal shellpipe=2>
|
||||
"set shellpipe=>
|
||||
set shellpipe=2>
|
||||
"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')
|
||||
|
@ -1,2 +1,2 @@
|
||||
autocmd BufRead,BufNewFile *.a2l set filetype=a2l
|
||||
autocmd BufRead,BufNewFile *.x2l set filetype=a2l
|
||||
autocmd BufRead,BufNewFile *.a2l setlocal filetype=a2l
|
||||
autocmd BufRead,BufNewFile *.x2l setlocal filetype=a2l
|
||||
|
@ -1,6 +1,6 @@
|
||||
autocmd BufRead,BufNewFile /usr/include/*/* set filetype=c
|
||||
autocmd BufRead,BufNewFile *.d set filetype=c
|
||||
autocmd BufRead,BufNewFile *.dat set filetype=c
|
||||
autocmd BufRead,BufNewFile *.i set filetype=c
|
||||
autocmd BufRead,BufNewFile *.h.merge* set filetype=c
|
||||
autocmd BufRead,BufNewFile *.c.merge* set filetype=c
|
||||
autocmd BufRead,BufNewFile /usr/include/*/* setlocal filetype=c
|
||||
autocmd BufRead,BufNewFile *.d setlocal filetype=c
|
||||
autocmd BufRead,BufNewFile *.dat setlocal filetype=c
|
||||
autocmd BufRead,BufNewFile *.i setlocal filetype=c
|
||||
autocmd BufRead,BufNewFile *.h.merge* setlocal filetype=c
|
||||
autocmd BufRead,BufNewFile *.c.merge* setlocal filetype=c
|
||||
|
@ -1,4 +1,4 @@
|
||||
autocmd BufRead,BufNewFile *.paf set filetype=paf
|
||||
autocmd BufRead,BufNewFile *.daf set filetype=paf
|
||||
autocmd BufRead,BufNewFile *.0pa set filetype=paf
|
||||
autocmd BufRead,BufNewFile *.0da set filetype=paf
|
||||
autocmd BufRead,BufNewFile *.paf setlocal filetype=paf
|
||||
autocmd BufRead,BufNewFile *.daf setlocal filetype=paf
|
||||
autocmd BufRead,BufNewFile *.0pa setlocal filetype=paf
|
||||
autocmd BufRead,BufNewFile *.0da setlocal filetype=paf
|
||||
|
@ -1,3 +1,3 @@
|
||||
autocmd BufRead,BufNewFile SConstruct set filetype=scons
|
||||
autocmd BufRead,BufNewFile SConscript set filetype=scons
|
||||
autocmd BufRead,BufNewFile *.SConscript set filetype=scons
|
||||
autocmd BufRead,BufNewFile SConstruct setlocal filetype=scons
|
||||
autocmd BufRead,BufNewFile SConscript setlocal filetype=scons
|
||||
autocmd BufRead,BufNewFile *.SConscript setlocal filetype=scons
|
||||
|
@ -1 +1 @@
|
||||
autocmd BufRead,BufNewFile *.tex set filetype=tex
|
||||
autocmd BufRead,BufNewFile *.tex setlocal filetype=tex
|
||||
|
@ -1 +1 @@
|
||||
autocmd BufRead,BufNewFile *.cmm set filetype=trace
|
||||
autocmd BufRead,BufNewFile *.cmm setlocal filetype=trace
|
||||
|
@ -1 +1 @@
|
||||
autocmd BufRead,BufNewFile *.uc set filetype=uc
|
||||
autocmd BufRead,BufNewFile *.uc setlocal filetype=uc
|
||||
|
@ -12,14 +12,14 @@ let &l:tabstop = s:tabwidth
|
||||
" spaces for tabs
|
||||
"let &softtabstop = s:tabwidth
|
||||
" smart indent tabs (use spaces for indent else tabs)
|
||||
"set smarttab
|
||||
"setlocal smarttab
|
||||
" use spaces for tabs
|
||||
setlocal expandtab
|
||||
|
||||
" autoindent
|
||||
" indent mode - one of autoindent, smartindent or cindent
|
||||
" set autoindent
|
||||
" set smartindent
|
||||
" setlocal autoindent
|
||||
" setlocal smartindent
|
||||
setlocal cindent
|
||||
setlocal cinoptions=*200,)100,(s,w1,W4
|
||||
let &l:shiftwidth = s:tabwidth
|
||||
|
@ -193,9 +193,9 @@ endfunction
|
||||
" echo HexStatusLine()
|
||||
"endfunction
|
||||
|
||||
command! HexStatusLine set statusline=%!HexStatusLine()
|
||||
command! HexStatusLineOff set statusline=
|
||||
command! HexStatusLine setlocal statusline=%!HexStatusLine()
|
||||
command! HexStatusLineOff setlocal statusline=
|
||||
" Always update statusline with HEX info
|
||||
set statusline=%!HexStatusLine()
|
||||
setlocal statusline=%!HexStatusLine()
|
||||
" Always show statusline
|
||||
set laststatus=2
|
||||
setlocal laststatus=2
|
||||
|
@ -5,7 +5,7 @@ setlocal shiftwidth=2
|
||||
setlocal expandtab
|
||||
setlocal tabstop=8
|
||||
|
||||
"set autoindent
|
||||
"setlocal autoindent
|
||||
|
||||
compiler java
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
" Stefans vim-file plugin
|
||||
|
||||
" Add Menu-Bar
|
||||
set guioptions+=m
|
||||
setlocal guioptions+=m
|
||||
|
||||
" benutze Makefile
|
||||
let g:Tex_UseMakefile = 1
|
||||
|
@ -70,7 +70,7 @@ function s:CVSshowDifferences(filename)
|
||||
let patchfile = tempname()
|
||||
echo 'patchfile: ' . patchfile
|
||||
call s:CVSdiff(a:filename, patchfile)
|
||||
set patchexpr=ReversePatch()
|
||||
setlocal patchexpr=ReversePatch()
|
||||
execute 'vertical diffpatch ' . patchfile
|
||||
endfunction
|
||||
|
||||
|
@ -922,10 +922,10 @@ endfunction
|
||||
|
||||
command DiffOff call DiffOff()
|
||||
function DiffOff()
|
||||
set nodiff
|
||||
set noscrollbind
|
||||
set foldcolumn=0
|
||||
set foldmethod=syntax
|
||||
setlocal nodiff
|
||||
setlocal noscrollbind
|
||||
setlocal foldcolumn=0
|
||||
setlocal foldmethod=syntax
|
||||
endfunction
|
||||
|
||||
" options for DirDiff
|
||||
|
@ -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
|
||||
let c_no_if0 = 1
|
||||
syntax sync fromstart
|
||||
"set foldmethod=syntax
|
||||
"set nofoldenable
|
||||
"setlocal foldmethod=syntax
|
||||
"setlocal nofoldenable
|
||||
|
||||
" Folds for #ifdef
|
||||
command! -nargs=0 FoldDefine call FoldDefine(<args>)
|
||||
@ -49,7 +49,7 @@ function! FoldDefine ()
|
||||
execute command
|
||||
execute 'highlight def link ' . foldname . ' Comment'
|
||||
syntax sync fromstart
|
||||
set foldmethod=syntax
|
||||
setlocal foldmethod=syntax
|
||||
execute 'normal `x'
|
||||
endfunction
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
syntax region myFold start="{" end="}" transparent fold
|
||||
syntax sync fromstart
|
||||
set foldmethod=syntax
|
||||
setlocal foldmethod=syntax
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user