C and Python ftplugin tweaks

This commit is contained in:
Eryn Wells 2013-01-07 09:53:03 -08:00
parent 7bb6389571
commit e1ae600953
2 changed files with 10 additions and 3 deletions

View file

@ -11,6 +11,6 @@ endif
" Do comments that look like this:
" /* stuff and things
" more stuff with things */
"setlocal comments="sO:* -,mO: ,exO:*/,sl:/*,mb: ,ex:*/"
setlocal comments="sO:* -,mO: ,exO:*/,sl:/*,mb: ,ex:*/"
setlocal cinoptions+=(0,Ws

View file

@ -1,8 +1,15 @@
setlocal shiftwidth=4
setlocal softtabstop=4
setlocal expandtab
setlocal textwidth=100
setlocal colorcolumn=100
let s:buf_filename = expand('%:t')
if s:buf_filename != "SConscript" && s:buf_filename != "SConstruct"
setlocal textwidth=100
setlocal colorcolumn=100
else
setlocal textwidth=80
setlocal colorcolumn=80
endif
"setlocal foldnestmax=3
"setlocal fdm=indent