[vim] Use breakindent and showbreak for code
This commit is contained in:
parent
4fd47e164e
commit
1edbfdff0f
1 changed files with 6 additions and 0 deletions
6
vimrc
6
vimrc
|
@ -348,6 +348,12 @@ if has('autocmd')
|
|||
autocmd FileType html,css call <SID>strip_trailing_whitespace()
|
||||
augroup END
|
||||
|
||||
" Indent wrapped long lines of code to leading indent
|
||||
augroup WrapLongLinesWithProperIndentation
|
||||
autocmd!
|
||||
autocmd FileType python,c,cpp,objc,objcpp,html,css setlocal breakindent showbreak=\ \ \ \
|
||||
augroup END
|
||||
|
||||
augroup SConsFileType
|
||||
autocmd!
|
||||
autocmd BufRead SCons{truct,cript} setf python
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue