From 90f19226d36082287fd18c5cfa68bd15a116a568 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Thu, 2 Aug 2018 11:40:08 +1200 Subject: Use g_ instead of $ for yanking command lines Excludes trailing spaces that way --- vim/vimrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vim/vimrc') diff --git a/vim/vimrc b/vim/vimrc index f3158cf6..cbc4b216 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -319,11 +319,11 @@ nnoremap :enew " Execution mappings; each of these clobbers register z " \@ executes line in normal mode -nnoremap @ g^"zy$@z +nnoremap @ g^"zyg_@z " \: executes line in command mode -nnoremap : g^"zy$:z +nnoremap : g^"zyg_:z " \! executes line with 'shell' -nnoremap ! g^"zy$:!z +nnoremap ! g^"zyg_:!z " If we're running NeoVim, source some extra configuration if has('nvim') -- cgit v1.2.3