diff options
| author | Teddy Wing | 2021-09-15 20:13:07 +0200 | 
|---|---|---|
| committer | Teddy Wing | 2021-09-21 20:32:38 +0200 | 
| commit | 4124b09bdbcf4c76fcdf389fcec1e9c59838dac1 (patch) | |
| tree | da0a000c5bd9e3502974269fc86973af2a1b8cb9 /vimrc | |
| parent | 696766cc8d9ab129274347a185951a474337ea77 (diff) | |
| download | dotvim-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.
Diffstat (limited to 'vimrc')
| -rw-r--r-- | vimrc | 6 | 
1 files changed, 6 insertions, 0 deletions
| @@ -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> | 
