heavim/cfg/05-cursor.vim

15 lines
457 B
VimL
Raw Normal View History

2015-03-02 18:20:55 +01:00
" Cursor line & column: ' c' = invert, ' C' = mode, ' n' = line numbers
function! <SID>ToggleCursorMode()
if &cursorline && &cursorcolumn || !( &cursorline || &cursorcolumn )
set cursorline nocursorcolumn
else
set cursorline cursorcolumn
endif
endfunction
nnoremap <silent> <Leader>c :set cursorline! cursorcolumn!<CR>
nnoremap <silent> <Leader>C :call <SID>ToggleCursorMode()<CR>
nnoremap <silent> <Leader>n :set number!<CR>
set cursorline number