From 4124b09bdbcf4c76fcdf389fcec1e9c59838dac1 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 15 Sep 2021 20:13:07 +0200 Subject: vimrc: Add `N` to open a new empty buffer in a vertical split Like `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. --- vimrc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'vimrc') diff --git a/vimrc b/vimrc index dec3f5e..e57112a 100644 --- a/vimrc +++ b/vimrc @@ -482,6 +482,9 @@ " 2020.10.27: " * Make `p` command repeatable. " +" 2021.09.15: +" * Add `N` to open a new empty buffer in a vertical split. +" " Pathogen @@ -822,6 +825,9 @@ nnoremap " Open the current buffer in a new tab nnoremap e :tabedit % +" Open a new vertical split with a new empty buffer. +nnoremap N :vnew + " Quickfix nnoremap ]q :execute v:count . 'cnext' nnoremap [q :execute v:count . 'cprevious' -- cgit v1.2.3