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