mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
overlentgh highlight
This commit is contained in:
parent
9ba0c8a359
commit
c1ea75e62b
1 changed files with 7 additions and 0 deletions
7
vimrc
7
vimrc
|
|
@ -76,6 +76,13 @@ autocmd FileType ruby set softtabstop=2 shiftwidth=2
|
|||
autocmd FileType eruby set softtabstop=2 shiftwidth=2
|
||||
autocmd FileType coffee set softtabstop=4 shiftwidth=4
|
||||
|
||||
"notify line length > 80
|
||||
function HighlightOverLength()
|
||||
highlight OverLength ctermbg=blue ctermfg=white guibg=#59292
|
||||
match OverLength /\%81v.\+/
|
||||
endfunction
|
||||
autocmd FileType ruby call HighlightOverLength()
|
||||
|
||||
"swap/undo files
|
||||
set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,.
|
||||
"set undodir=~/.vim/tmp/undo//,.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue