mirror of
https://github.com/prurigro/darkcloud-nvimconfig.git
synced 2024-11-26 05:01:25 -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
|
||||||
|
if !&diff
|
||||||
autocmd FileType help map <buffer> <silent><expr> q ':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>'
|
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,9 +114,12 @@
|
||||||
if !exists("g:autostarttagbar")
|
if !exists("g:autostarttagbar")
|
||||||
let g:autostarttagbar=0
|
let g:autostarttagbar=0
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
if !&diff
|
||||||
if (g:autostarttagbar == 1)
|
if (g:autostarttagbar == 1)
|
||||||
autocmd VimEnter * nested :call tagbar#autoopen(1)
|
autocmd VimEnter * nested :call tagbar#autoopen(1)
|
||||||
endif
|
endif
|
||||||
|
endif
|
||||||
|
|
||||||
let g:tagbar_sort=0
|
let g:tagbar_sort=0
|
||||||
let g:tagbar_compact=1
|
let g:tagbar_compact=1
|
||||||
|
|
Loading…
Reference in a new issue