vim: Set colorcolumn to textwidth
Set &colorcolumn to &textwidth instead of hardcoding it to the same value.
This commit is contained in:
@@ -10,8 +10,6 @@ set ignorecase smartcase
|
|||||||
set tabstop=4
|
set tabstop=4
|
||||||
" Shift the same amount as tabstop
|
" Shift the same amount as tabstop
|
||||||
set shiftwidth=0
|
set shiftwidth=0
|
||||||
" Highlight current line
|
|
||||||
set cursorline
|
|
||||||
" Auto-wrap text and comments; automatically add comment leader when creating
|
" Auto-wrap text and comments; automatically add comment leader when creating
|
||||||
" new lines and delete it when joining; do not break already too long lines;
|
" new lines and delete it when joining; do not break already too long lines;
|
||||||
" allow formatting with gq.
|
" allow formatting with gq.
|
||||||
@@ -43,8 +41,10 @@ else
|
|||||||
nmap cw dwi
|
nmap cw dwi
|
||||||
nmap cW dWi
|
nmap cW dWi
|
||||||
endif
|
endif
|
||||||
" Show ruler at 80 columns
|
" Highlight current line
|
||||||
set colorcolumn=80
|
set cursorline
|
||||||
|
" Show ruler at &textwidth columns
|
||||||
|
let &colorcolumn=&textwidth
|
||||||
" Show menu for possible matches when using command-line completing.
|
" Show menu for possible matches when using command-line completing.
|
||||||
if (has('wildmenu'))
|
if (has('wildmenu'))
|
||||||
set wildmenu
|
set wildmenu
|
||||||
|
|||||||
Reference in New Issue
Block a user