From 920a45031e322d81827f2102ec5847f7479305ad Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Fri, 6 Apr 2018 00:44:20 +0200 Subject: vimrc: Add `z` mapping For jumping to a tag, `` is great, but I usually like to have the current buffer stay open and look at the tag source in a different window. This new mapping gives me a quick way to do that. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 473852f..1c43095 100644 --- a/vimrc +++ b/vimrc @@ -397,6 +397,9 @@ " 2018.02.10: " * Add w to search the word under the cursor with Ripgrep. " +" 2018.04.05: +" * Add z to jump to tag in a vertical split. +" " Pathogen @@ -712,6 +715,9 @@ nnoremap [q :cprevious " Set scrollbind on a window nnoremap sb :setlocal scrollbind! scrollbind? +" Jump to tag in a new split +nnoremap z :execute ':vertical stjump ' . expand('') + " Copy to OS X clipboard from visual mode " http://stackoverflow.com/a/17126375 vnoremap c !tee >(pbcopy) -- cgit v1.2.3