From d01eb5de14bb1ee775ce3875c3c664e39e728ba8 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Fri, 12 Mar 2021 19:54:49 +0300 Subject: feat(vim): automatically refresh Defx --- .vimrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.vimrc b/.vimrc index c214070..8f62762 100644 --- a/.vimrc +++ b/.vimrc @@ -51,6 +51,7 @@ nnoremap l nnoremap :Defx autocmd FileType defx call s:defx_my_settings() autocmd BufEnter * if(winnr("$") == 1 && &ft == 'defx') | q | endif +autocmd BufWritePost * call defx#redraw() function! SmartTabEdit(context) abort tabnew -- cgit v1.2.3