mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-12-22 08:40:24 -05:00
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:
parent
93622b42f9
commit
ec0032348d
2 changed files with 11 additions and 6 deletions
|
@ -527,10 +527,12 @@
|
|||
autocmd FileType gundo map <buffer> h k
|
||||
|
||||
"help
|
||||
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>'
|
||||
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>'
|
||||
|
|
|
@ -114,8 +114,11 @@
|
|||
if !exists("g:autostarttagbar")
|
||||
let g:autostarttagbar=0
|
||||
endif
|
||||
if (g:autostarttagbar == 1)
|
||||
autocmd VimEnter * nested :call tagbar#autoopen(1)
|
||||
|
||||
if !&diff
|
||||
if (g:autostarttagbar == 1)
|
||||
autocmd VimEnter * nested :call tagbar#autoopen(1)
|
||||
endif
|
||||
endif
|
||||
|
||||
let g:tagbar_sort=0
|
||||
|
|
Loading…
Reference in a new issue