C and Python ftplugin tweaks
This commit is contained in:
parent
7bb6389571
commit
e1ae600953
2 changed files with 10 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue