From a6d256cab3d24f091cb672580b6ef0fedf76c0cb Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 26 Feb 2020 00:52:19 +0100 Subject: vimrc: Add `e` mapping to open the current buffer in a new tab --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/vimrc b/vimrc index 3cb9df9..f15ae1f 100644 --- a/vimrc +++ b/vimrc @@ -455,6 +455,9 @@ " 2020.02.24: " * Add `cF` mapping to copy the absolute path of a file. " +" 2020.02.25: +" * Add `e` mapping to open the current buffer in a new tab. +" " Pathogen @@ -784,6 +787,9 @@ nnoremap tl :execute "tabnext " . g:last_viewed_tab nnoremap q nnoremap +" Open the current buffer in a new tab +nnoremap e :tabedit % + " Quickfix nnoremap ]q :cnext nnoremap [q :cprevious -- cgit v1.2.3