aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2021-09-15 20:13:07 +0200
committerTeddy Wing2021-09-21 20:32:38 +0200
commit4124b09bdbcf4c76fcdf389fcec1e9c59838dac1 (patch)
treeda0a000c5bd9e3502974269fc86973af2a1b8cb9
parent696766cc8d9ab129274347a185951a474337ea77 (diff)
downloaddotvim-4124b09bdbcf4c76fcdf389fcec1e9c59838dac1.tar.bz2
vimrc: Add `<C-w>N` to open a new empty buffer in a vertical split
Like `<C-w>n` except that instead of opening a new buffer in a horizontal split, it opens a vertical one. This can be preferred depending on the existing window layout.
-rw-r--r--vimrc6
1 files changed, 6 insertions, 0 deletions
diff --git a/vimrc b/vimrc
index dec3f5e..e57112a 100644
--- a/vimrc
+++ b/vimrc
@@ -482,6 +482,9 @@
" 2020.10.27:
" * Make `<leader>p` command repeatable.
"
+" 2021.09.15:
+" * Add `<C-w>N` to open a new empty buffer in a vertical split.
+"
" Pathogen
@@ -822,6 +825,9 @@ nnoremap <C-w><C-q> <nop>
" Open the current buffer in a new tab
nnoremap <C-w>e :tabedit %<cr>
+" Open a new vertical split with a new empty buffer.
+nnoremap <C-w>N :vnew<CR>
+
" Quickfix
nnoremap ]q :<C-u>execute v:count . 'cnext'<cr>
nnoremap [q :<C-u>execute v:count . 'cprevious'<cr>