aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index 3cb9df9..f15ae1f 100644
--- a/vimrc
+++ b/vimrc
@@ -455,6 +455,9 @@
" 2020.02.24:
" * Add `<leader>cF` mapping to copy the absolute path of a file.
"
+" 2020.02.25:
+" * Add `<C-w>e` mapping to open the current buffer in a new tab.
+"
" Pathogen
@@ -784,6 +787,9 @@ nnoremap <leader>tl :execute "tabnext " . g:last_viewed_tab<cr>
nnoremap <C-w>q <nop>
nnoremap <C-w><C-q> <nop>
+" Open the current buffer in a new tab
+nnoremap <C-w>e :tabedit %<cr>
+
" Quickfix
nnoremap ]q :cnext<cr>
nnoremap [q :cprevious<cr>