Simpler Gvsplit substitution, without register polluting
authorSergey Matveev <stargrave@stargrave.org>
Wed, 27 May 2020 10:46:04 +0000 (13:46 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 27 May 2020 10:46:04 +0000 (13:46 +0300)
vim/.vimrc

index b4da21a29d39464f5afa4500e98f3204ce59328a..b4f525c4615edabd25cc8c8320a66e5ca2f88014 100644 (file)
@@ -108,7 +108,7 @@ autocmd BufEnter * let &titlestring = expand("%:t")
 " }}}
 
 " Fugitive {{{
-nmap <F7> "cyiw:execute "Gvsplit " . @c<CR>zR
+nmap <F7> :Gvsplit <C-R><C-W><CR>zR
 nmap <F9> :diffupdate<CR>:syntax off<CR>:syntax on<CR>
 " }}}