From 4f16a04b55690b914a4cf9422b0bcaaccba18d46 Mon Sep 17 00:00:00 2001 From: Eryn Wells Date: Fri, 28 Sep 2012 12:29:24 -0700 Subject: [PATCH] setlocal for Vim C file settings --- vim/after/ftplugin/c.vim | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/vim/after/ftplugin/c.vim b/vim/after/ftplugin/c.vim index ecf5dae..c8c679d 100644 --- a/vim/after/ftplugin/c.vim +++ b/vim/after/ftplugin/c.vim @@ -1,17 +1,16 @@ -set foldmethod=syntax -set sw=4 sts=4 -set et +setlocal foldmethod=syntax +setlocal et "For the new omni-completion ":help ft-c-omni" if has('mac') - set tags+=~/.vim/systags-osx + setlocal tags+=~/.vim/systags-osx elseif has('linux') - set tags+=~/.vim/systags-linux + setlocal tags+=~/.vim/systags-linux endif " Do comments that look like this: " /* stuff and 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