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:
parent
9f028a151e
commit
cfaf341754
@ -74,4 +74,15 @@ function! utils#MyFoldText()
|
|||||||
let fillcharcount = &textwidth - len(line_text) - len(folded_line_num) - 10
|
let fillcharcount = &textwidth - len(line_text) - len(folded_line_num) - 10
|
||||||
return '+'. repeat('-', 4) . line_text . repeat('.', fillcharcount) . ' (' . folded_line_num . ' L)'
|
return '+'. repeat('-', 4) . line_text . repeat('.', fillcharcount) . ' (' . folded_line_num . ' L)'
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
" Toggle cursor column
|
||||||
|
function! utils#ToggleCursorCol()
|
||||||
|
if &cursorcolumn
|
||||||
|
set nocursorcolumn
|
||||||
|
echo "cursorcolumn: OFF"
|
||||||
|
else
|
||||||
|
set cursorcolumn
|
||||||
|
echo "cursorcolumn: ON"
|
||||||
|
endif
|
||||||
|
endfunction
|
||||||
"}
|
"}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user