aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-06-30 22:48:13 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-06-30 22:48:13 +1200
commitf9de91a7f7d1a514bdebd1d4045952aa30f44339 (patch)
tree702e67d8fc92bdb68e27b937dca2a55599749e37 /vim/vimrc
parentAdd +title settings to .vimrc (diff)
downloaddotfiles-f9de91a7f7d1a514bdebd1d4045952aa30f44339.tar.gz
dotfiles-f9de91a7f7d1a514bdebd1d4045952aa30f44339.zip
Stack Vim ^ to make it support counts
Can't immediately see a clean way to do it for operator mode, though.
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 9cee7a39..b5ccb4f9 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -193,6 +193,12 @@ if v:version >= 700
xnoremap <silent> & :&&<CR>
endif
+" Stack ^ to make it support counts by abusing $
+nnoremap ^ $^
+if v:version >= 700
+ xnoremap ^ $^
+endif
+
" Stack insert Ctrl-C to undo the escaped insert operation
inoremap <C-C> <C-C>u