diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-02 11:40:08 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2018-08-02 11:40:08 +1200 |
commit | 90f19226d36082287fd18c5cfa68bd15a116a568 (patch) | |
tree | 2a305ccdfb049e83c9eae148988620881629e26d | |
parent | Correct \: mapping (diff) | |
download | dotfiles-90f19226d36082287fd18c5cfa68bd15a116a568.tar.gz dotfiles-90f19226d36082287fd18c5cfa68bd15a116a568.zip |
Use g_ instead of $ for yanking command lines
Excludes trailing spaces that way
-rw-r--r-- | vim/vimrc | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -319,11 +319,11 @@ nnoremap <Bslash><Insert> :<C-U>enew<CR> " Execution mappings; each of these clobbers register z " \@ executes line in normal mode -nnoremap <Bslash>@ g^"zy$@z +nnoremap <Bslash>@ g^"zyg_@z " \: executes line in command mode -nnoremap <Bslash>: g^"zy$:<C-R>z<CR> +nnoremap <Bslash>: g^"zyg_:<C-R>z<CR> " \! executes line with 'shell' -nnoremap <Bslash>! g^"zy$:!<C-R>z<CR> +nnoremap <Bslash>! g^"zyg_:!<C-R>z<CR> " If we're running NeoVim, source some extra configuration if has('nvim') |