Configure buffer splitting

This commit is contained in:
Jonas Ryssel 2023-04-28 17:49:58 +02:00
parent e9d6e5928c
commit db57552b98

View File

@ -949,6 +949,18 @@ command! -nargs=* ZZ call ZZWrap(<f-args>)
nnoremap <Space> :nohl<CR>
" 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