mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 12:15:29 +00:00
chore(vim): add custom function to show colorline
This commit is contained in:
@@ -19,6 +19,21 @@ function! ToggleWrap()
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Toggle between soft wrap and no wrap
|
||||
nnoremap <leader>cw :call ToggleColorColumn()<CR>
|
||||
|
||||
function! ToggleColorColumn()
|
||||
if &colorcolumn == "80"
|
||||
echo "Textwidth OFF"
|
||||
set colorcolumn=0
|
||||
set textwidth=0
|
||||
else
|
||||
echo "Textwidth ON"
|
||||
set colorcolumn=80
|
||||
set textwidth=80
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Automatic Tabular.vim with the (|)
|
||||
inoremap <silent> <Bar> <Bar><Esc>:call <SID>align()<CR>a
|
||||
|
||||
|
||||
Reference in New Issue
Block a user