dotfiles/vim/after/ftplugin/c.vim

17 lines
381 B
VimL
Raw Normal View History

2012-09-28 12:29:24 -07:00
setlocal foldmethod=syntax
setlocal et
2011-05-03 21:53:50 -07:00
"For the new omni-completion ":help ft-c-omni"
if has('mac')
2012-09-28 12:29:24 -07:00
setlocal tags+=~/.vim/systags-osx
2011-05-03 21:53:50 -07:00
elseif has('linux')
2012-09-28 12:29:24 -07:00
setlocal tags+=~/.vim/systags-linux
2011-05-03 21:53:50 -07:00
endif
2011-09-09 14:45:47 -07:00
" Do comments that look like this:
" /* stuff and things
" more stuff with things */
"setlocal comments="sO:* -,mO: ,exO:*/,sl:/*,mb: ,ex:*/"
2011-09-09 14:45:47 -07:00
2012-09-28 12:29:24 -07:00
setlocal cinoptions+=(0,Ws