From f9de91a7f7d1a514bdebd1d4045952aa30f44339 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 30 Jun 2018 22:48:13 +1200 Subject: Stack Vim ^ to make it support counts Can't immediately see a clean way to do it for operator mode, though. --- vim/vimrc | 6 ++++++ 1 file changed, 6 insertions(+) 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 & :&& 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 u -- cgit v1.2.3