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:
parent
e098df1ab7
commit
96113ed476
11
plugins.vim
11
plugins.vim
@ -522,6 +522,17 @@ let g:vista_echo_cursor = 0
|
|||||||
let g:vista_stay_on_open = 0
|
let g:vista_stay_on_open = 0
|
||||||
|
|
||||||
nnoremap <silent> <Space>t :Vista!!<CR>
|
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
|
"{{ File editting
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user