Closing help with q or the same keys that opened it are disabled in

vimdiff since they'd kill the whole shebang, and the tagbar won't auto
open in vimdiff either
This commit is contained in:
Kevin 2014-04-17 12:35:49 -04:00
parent 93622b42f9
commit ec0032348d
2 changed files with 11 additions and 6 deletions

View file

@ -527,10 +527,12 @@
autocmd FileType gundo map <buffer> h k
"help
if !&diff
autocmd FileType help map <buffer> <silent><expr> q ':q<CR>'
autocmd FileType help map <buffer> <silent><expr> ?? ':q<CR>'
autocmd FileType help map <buffer> <silent><expr> ?> ':q<CR>'
autocmd FileType help map <buffer> <silent><expr> ?< ':q<CR>'
endif
"markdown: launch table of contents instead of the tagbar
autocmd FileType mkd map <buffer> <silent><expr> <F8> ':Toch<CR>'

View file

@ -114,9 +114,12 @@
if !exists("g:autostarttagbar")
let g:autostarttagbar=0
endif
if !&diff
if (g:autostarttagbar == 1)
autocmd VimEnter * nested :call tagbar#autoopen(1)
endif
endif
let g:tagbar_sort=0
let g:tagbar_compact=1