diff options
| author | jdhao <jdhao@hotmail.com> | 2020-10-11 18:28:10 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2020-10-11 18:28:10 +0800 |
| commit | 96113ed476ec336374d5e5a74c9d0adbce4ff739 (patch) | |
| tree | e948323cdeb557ba1a66bb88f865b9cfe3c477a5 /plugins.vim | |
| parent | e098df1ab7558728ee2155180942f88e2908a414 (diff) | |
update vista.vim config
Diffstat (limited to 'plugins.vim')
| -rw-r--r-- | plugins.vim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/plugins.vim b/plugins.vim index d81a5f6..f6fd35e 100644 --- a/plugins.vim +++ b/plugins.vim @@ -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 |
