vim: Drop textwidth autocmd for native way
Instead of needing a manual autocmd that triggers on textwidth changes, colorcolumn supports offsets to textwidth natively.
This commit is contained in:
@@ -42,9 +42,9 @@ else
|
||||
nmap cW dWi
|
||||
endif
|
||||
" Highlight current line
|
||||
" set cursorline
|
||||
" Show ruler at &textwidth columns
|
||||
let &colorcolumn=&textwidth
|
||||
"set cursorline
|
||||
" Show ruler at column behind &textwidth
|
||||
set colorcolumn=+1
|
||||
" Show menu for possible matches when using command-line completing.
|
||||
if (has('wildmenu'))
|
||||
set wildmenu
|
||||
|
||||
Reference in New Issue
Block a user