aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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