1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update: add function to toggle cursorcolumn

This commit is contained in:
jdhao 2020-04-29 20:54:52 +08:00 committed by GitHub
parent 9f028a151e
commit cfaf341754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
"}