aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:40:08 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-08-02 11:40:08 +1200
commit90f19226d36082287fd18c5cfa68bd15a116a568 (patch)
tree2a305ccdfb049e83c9eae148988620881629e26d /vim/vimrc
parentCorrect \: mapping (diff)
downloaddotfiles-90f19226d36082287fd18c5cfa68bd15a116a568.tar.gz
dotfiles-90f19226d36082287fd18c5cfa68bd15a116a568.zip
Use g_ instead of $ for yanking command lines
Excludes trailing spaces that way
Diffstat (limited to 'vim/vimrc')
-rw-r--r--vim/vimrc6
1 files changed, 3 insertions, 3 deletions
diff --git a/vim/vimrc b/vim/vimrc
index f3158cf6..cbc4b216 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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')