heavim/cfg/05-cursor.vim
Emmanuel BENOîT b0647949f8 Style and shortcut tweaks. Added vim-which-key.
* Shortcut changes to make the Leader-based shortcuts easier to use
 * Install vim-which-key
 * Style fixes and changes
 * Reorganised some of the settings
2020-12-07 16:36:17 +01:00

12 lines
372 B
VimL

" Cursor line & column display
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>