aboutsummaryrefslogtreecommitdiffstats
path: root/vimrc
diff options
context:
space:
mode:
authorTeddy Wing2020-02-26 00:52:19 +0100
committerTeddy Wing2020-02-26 00:55:21 +0100
commita6d256cab3d24f091cb672580b6ef0fedf76c0cb (patch)
tree05f615c75c0dadb5fa1125b74ae9eab8758c6cab /vimrc
parent7a06e3db5d7a47a05558dd6557f23e665cc26c39 (diff)
downloaddotvim-a6d256cab3d24f091cb672580b6ef0fedf76c0cb.tar.bz2
vimrc: Add `<C-w>e` mapping to open the current buffer in a new tab
Diffstat (limited to 'vimrc')
-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>