From 2226b04eec38c0e3bd40337cba07834009a5c5af Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Thu, 18 Aug 2022 10:01:29 +0200 Subject: Improve vim label --- vim/.vim/after/plugin/status.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vim/.vim/after') diff --git a/vim/.vim/after/plugin/status.vim b/vim/.vim/after/plugin/status.vim index 54c5bb7..78949fb 100644 --- a/vim/.vim/after/plugin/status.vim +++ b/vim/.vim/after/plugin/status.vim @@ -35,8 +35,8 @@ augroup myflags highlight MyGlobals ctermfg=255 ctermbg=240 autocmd! - autocmd CmdwinEnter,BufEnter,BufRead,BufWritePost * let b:trailing=search('\s\+$','n') - autocmd CmdwinEnter,BufEnter,BufRead,BufWritePost * let b:mixed=Mixed_indent() + autocmd FileReadPost,CmdwinEnter,BufEnter,BufRead,BufWritePost * let b:trailing=search('\s\+$','n') + autocmd FileReadPost,CmdwinEnter,BufEnter,BufRead,BufWritePost * let b:mixed=Mixed_indent() autocmd User Flags call Hoist("buffer", "%{FugitiveHead('') != '' ? '['.FugitiveHead('').']' : ''}") autocmd User Flags call Hoist("buffer", "%{b:trailing?'[tw]':''}") autocmd User Flags call Hoist("buffer", "%{b:mixed?'[mixed]':''}") -- cgit v1.2.3