1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update vista.vim config

This commit is contained in:
jdhao 2020-10-11 18:28:10 +08:00
parent e098df1ab7
commit 96113ed476

View File

@ -522,6 +522,17 @@ let g:vista_echo_cursor = 0
let g:vista_stay_on_open = 0
nnoremap <silent> <Space>t :Vista!!<CR>
function! s:close_vista_win() abort
if winnr('$') == 1 && getbufvar(bufnr(), '&filetype') ==# 'vista'
quit
endif
endfunction
augroup vista_close_win
autocmd!
autocmd BufEnter * call s:close_vista_win()
augroup END
"}}
"{{ File editting