mirror of
https://github.com/lloeki/vimfiles.git
synced 2025-12-06 05:24:39 +01:00
disable overlength warning
This commit is contained in:
parent
b25e8935da
commit
0792c2d555
1 changed files with 0 additions and 11 deletions
11
vimrc
11
vimrc
|
|
@ -89,17 +89,6 @@ if expand('%:t') =~? 'rfc\d\+' || expand('%:t') =~? 'draft-.*-\d\{2,}'
|
||||||
set textwidth=72
|
set textwidth=72
|
||||||
endif
|
endif
|
||||||
|
|
||||||
"notify line over length
|
|
||||||
function HighlightOverLength(len)
|
|
||||||
highlight OverLength ctermbg=blue ctermfg=white guibg=#59292
|
|
||||||
execute 'match OverLength /\%'.(a:len+1).'v.\+/'
|
|
||||||
endfunction
|
|
||||||
autocmd FileType vim call HighlightOverLength(80)
|
|
||||||
autocmd FileType ruby call HighlightOverLength(80)
|
|
||||||
autocmd FileType slim call HighlightOverLength(80)
|
|
||||||
autocmd FileType python call HighlightOverLength(80)
|
|
||||||
autocmd FileType mdown call HighlightOverLength(80)
|
|
||||||
|
|
||||||
"swap/undo files
|
"swap/undo files
|
||||||
set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,.
|
set dir=~/.vim/tmp/swap//,/var/tmp//,/tmp//,.
|
||||||
"set undodir=~/.vim/tmp/undo//,.
|
"set undodir=~/.vim/tmp/undo//,.
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue