From db57552b98b8ef3514d19be7d6efb55a17792050 Mon Sep 17 00:00:00 2001 From: Jonas Ryssel Date: Fri, 28 Apr 2023 17:49:58 +0200 Subject: [PATCH] Configure buffer splitting --- init.vim | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/init.vim b/init.vim index af134e7..77ad618 100644 --- a/init.vim +++ b/init.vim @@ -949,6 +949,18 @@ command! -nargs=* ZZ call ZZWrap() nnoremap :nohl +" Configure buffer splitting {{{ + set splitright " When using `vsplit`, place cursor on the rightmost buffer + set splitbelow " When using `split`, place cursor on the bottommost buffer + + augroup vimrc_help + autocmd! + " Open `help` buffers in vertical splits instead of horizontal splits + autocmd BufEnter *.txt if &buftype == 'help' | wincmd L | endif + augroup END +" }}} + + function! InsertSnip(snip_name) " Find the template echo a:snip_name