aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-04 18:59:09 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-04 18:59:09 +1200
commit72fd8ee3233f815f0795fb5c1f057aa8ad40a2bb (patch)
tree22ceb3f4d67172fcfdcbc72b731b20d8bece26ca
parent3aa3b546262abb6859d09c5d257af6b7ff91621d (diff)
downloaddotfiles-72fd8ee3233f815f0795fb5c1f057aa8ad40a2bb.tar.gz
dotfiles-72fd8ee3233f815f0795fb5c1f057aa8ad40a2bb.zip
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.
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 445e0bbb..bb0e989f 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -324,11 +324,11 @@ nnoremap <Bslash><Insert> :<C-U>enew<CR>
" Execution mappings; each of these clobbers register z
" \@ executes line in normal mode
-nnoremap <Bslash>@ g^"zyg_@z
+nnoremap <Bslash>@ ^"zyg_@z
" \: executes line in command mode
-nnoremap <Bslash>: g^"zyg_:<C-R>z<CR>
+nnoremap <Bslash>: ^"zyg_:<C-R>z<CR>
" \! executes line with 'shell'
-nnoremap <Bslash>! g^"zyg_:!<C-R>z<CR>
+nnoremap <Bslash>! ^"zyg_:!<C-R>z<CR>
" If we're running NeoVim, source some extra configuration
if has('nvim')