Emmanuel BENOîT
b0647949f8
* Shortcut changes to make the Leader-based shortcuts easier to use * Install vim-which-key * Style fixes and changes * Reorganised some of the settings
12 lines
372 B
VimL
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>
|