diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-04 18:59:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-04 18:59:09 +1200 |
commit | 72fd8ee3233f815f0795fb5c1f057aa8ad40a2bb (patch) | |
tree | 22ceb3f4d67172fcfdcbc72b731b20d8bece26ca | |
parent | Merge branch 'release/v1.43.0' into develop (diff) | |
download | dotfiles-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/vimrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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') |