From 72fd8ee3233f815f0795fb5c1f057aa8ad40a2bb Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Sat, 4 Aug 2018 18:59:09 +1200 Subject: Correct start-of-line jumps in Vim line exec maps g^ moves to the first non-blank character of the screen line, for use when 'wrap' is on. I just wanted ^. g_ is correct, though. --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim') diff --git a/vim/vimrc b/vim/vimrc index 445e0bbb..bb0e989f 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -324,11 +324,11 @@ nnoremap :enew " Execution mappings; each of these clobbers register z " \@ executes line in normal mode -nnoremap @ g^"zyg_@z +nnoremap @ ^"zyg_@z " \: executes line in command mode -nnoremap : g^"zyg_:z +nnoremap : ^"zyg_:z " \! executes line with 'shell' -nnoremap ! g^"zyg_:!z +nnoremap ! ^"zyg_:!z " If we're running NeoVim, source some extra configuration if has('nvim') -- cgit v1.2.3