Configure buffer splitting
This commit is contained in:
parent
e9d6e5928c
commit
db57552b98
12
init.vim
12
init.vim
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user