heavim/cfg/05-cursor.vim

13 lines
372 B
VimL
Raw Normal View History

" 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
nnoremap <silent> <Leader>oc :set cursorline! cursorcolumn!<CR>
nnoremap <silent> <Leader>oC :call <SID>ToggleCursorMode()<CR>