diff options
| author | jdhao <jdhao@hotmail.com> | 2020-04-29 20:54:52 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-29 20:54:52 +0800 |
| commit | cfaf341754dc7b9144a2805e8f1f843108bca7c8 (patch) | |
| tree | 75bc0b57427ab86d7f3f6da627d5181fa1f8f535 /autoload/utils.vim | |
| parent | 9f028a151eaf388a45636e0b776561188f3c6e28 (diff) | |
update: add function to toggle cursorcolumn
Diffstat (limited to 'autoload/utils.vim')
| -rw-r--r-- | autoload/utils.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/autoload/utils.vim b/autoload/utils.vim index 0493ab7..9e6d875 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -74,4 +74,15 @@ function! utils#MyFoldText() let fillcharcount = &textwidth - len(line_text) - len(folded_line_num) - 10 return '+'. repeat('-', 4) . line_text . repeat('.', fillcharcount) . ' (' . folded_line_num . ' L)' endfunction + +" Toggle cursor column +function! utils#ToggleCursorCol() + if &cursorcolumn + set nocursorcolumn + echo "cursorcolumn: OFF" + else + set cursorcolumn + echo "cursorcolumn: ON" + endif +endfunction "} |
