We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb47e83 commit 5f5c4adCopy full SHA for 5f5c4ad
config/autocmd.vim
@@ -19,3 +19,24 @@ autocmd BufRead,BufNewFile .jshintrc setfiletype json
19
"autocmd CursorMovedI * if pumvisible() == 0|pclose|endif
20
autocmd InsertLeave * if pumvisible() == 0|pclose|endif
21
22
+function! CheckLeftBuffers()
23
+ if tabpagenr('$') == 1
24
+ let i = 1
25
+ while i <= winnr('$')
26
+ if getbufvar(winbufnr(i), '&buftype') == 'help' ||
27
+ \ getbufvar(winbufnr(i), '&buftype') == 'quickfix' ||
28
+ \ exists('t:NERDTreeBufName') &&
29
+ \ bufname(winbufnr(i)) == t:NERDTreeBufName ||
30
+ \ bufname(winbufnr(i)) == '__Tag_List__'
31
+ let i += 1
32
+ else
33
+ break
34
+ endif
35
+ endwhile
36
+ if i == winnr('$') + 1
37
+ qall
38
39
+ unlet i
40
41
+endfunction
42
+autocmd BufEnter * call CheckLeftBuffers()
0 commit comments