aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-21 12:55:03 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-21 12:55:03 +1200
commitae0b391b56037701114e5a62a7235cb67ae71cbd (patch)
tree106986ca68c5af844f1b6a551c427ef8ff62392b
parentAdd 'belloff' .vimrc setting (diff)
downloaddotfiles-ae0b391b56037701114e5a62a7235cb67ae71cbd.tar.gz
dotfiles-ae0b391b56037701114e5a62a7235cb67ae71cbd.zip
Add \c and \C bindings for cursor lines
-rw-r--r--vim/vimrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 6f699bb7..f12ac69e 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -273,6 +273,9 @@ endif
nnoremap \a :<C-U>ToggleOptionFlagLocal formatoptions a<CR>
" \b toggles copy-pasteable linebreak settings
nmap \b <Plug>CopyLinebreakToggle
+" \c toggles 'cursorcolumn', \C toggles 'cursorline'
+nnoremap \c :<C-U>set cursorcolumn! cursorcolumn?<CR>
+nnoremap \C :<C-U>set cursorline! cursorline?<CR>
" Current date and time insertion commands, requiring POSIX date(1)
if has('unix')
" \d: Local date