2020-12-07 16:36:17 +01:00
|
|
|
" Cursor line & column display
|
2015-03-02 18:20:55 +01:00
|
|
|
function! <SID>ToggleCursorMode()
|
|
|
|
if &cursorline && &cursorcolumn || !( &cursorline || &cursorcolumn )
|
|
|
|
set cursorline nocursorcolumn
|
|
|
|
else
|
|
|
|
set cursorline cursorcolumn
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
set cursorline number
|
2020-12-07 16:36:17 +01:00
|
|
|
nnoremap <silent> <Leader>oc :set cursorline! cursorcolumn!<CR>
|
|
|
|
nnoremap <silent> <Leader>oC :call <SID>ToggleCursorMode()<CR>
|
2023-06-17 17:27:52 +02:00
|
|
|
|
|
|
|
" Use a bar-like cursor in insert mode, and a blinking block in replace mode
|
|
|
|
let &t_SI = "\e[6 q"
|
|
|
|
let &t_SR = "\e[0 q"
|
|
|
|
let &t_EI = "\e[2 q"
|