setlocal for Vim C file settings
This commit is contained in:
parent
28adee722e
commit
4f16a04b55
1 changed files with 6 additions and 7 deletions
|
@ -1,17 +1,16 @@
|
||||||
set foldmethod=syntax
|
setlocal foldmethod=syntax
|
||||||
set sw=4 sts=4
|
setlocal et
|
||||||
set et
|
|
||||||
|
|
||||||
"For the new omni-completion ":help ft-c-omni"
|
"For the new omni-completion ":help ft-c-omni"
|
||||||
if has('mac')
|
if has('mac')
|
||||||
set tags+=~/.vim/systags-osx
|
setlocal tags+=~/.vim/systags-osx
|
||||||
elseif has('linux')
|
elseif has('linux')
|
||||||
set tags+=~/.vim/systags-linux
|
setlocal tags+=~/.vim/systags-linux
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Do comments that look like this:
|
" Do comments that look like this:
|
||||||
" /* stuff and things
|
" /* stuff and things
|
||||||
" more stuff with things */
|
" more stuff with things */
|
||||||
set comments="sO:* -,mO: ,exO:*/,sl:/*,mb: ,ex:*/"
|
setlocal comments="sO:* -,mO: ,exO:*/,sl:/*,mb: ,ex:*/"
|
||||||
|
|
||||||
set cinoptions+=(0,Ws
|
setlocal cinoptions+=(0,Ws
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue