mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-11-22 14:44:11 -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
|
autocmd FileType gundo map <buffer> h k
|
||||||
|
|
||||||
"help
|
"help
|
||||||
autocmd FileType help map <buffer> <silent><expr> q ':q<CR>'
|
if !&diff
|
||||||
autocmd FileType help map <buffer> <silent><expr> ?? ':q<CR>'
|
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>'
|
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
|
"markdown: launch table of contents instead of the tagbar
|
||||||
autocmd FileType mkd map <buffer> <silent><expr> <F8> ':Toch<CR>'
|
autocmd FileType mkd map <buffer> <silent><expr> <F8> ':Toch<CR>'
|
||||||
|
|
|
@ -114,8 +114,11 @@
|
||||||
if !exists("g:autostarttagbar")
|
if !exists("g:autostarttagbar")
|
||||||
let g:autostarttagbar=0
|
let g:autostarttagbar=0
|
||||||
endif
|
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
|
endif
|
||||||
|
|
||||||
let g:tagbar_sort=0
|
let g:tagbar_sort=0
|
||||||
|
|
Loading…
Reference in a new issue