mirror of
https://github.com/prurigro/darkcloud-vimconfig.git
synced 2024-12-23 01:00:23 -05:00
Improve logic used when opening a help split
This commit is contained in:
parent
3d40db57b4
commit
1b4b730453
1 changed files with 2 additions and 2 deletions
|
@ -51,8 +51,8 @@ endif
|
|||
autocmd BufEnter,FileType extradite setlocal number "enable line numbers in extradite
|
||||
autocmd BufEnter,FileType help* setlocal nocursorline "remove the horizontal cursor line
|
||||
|
||||
"load help as a vertical split (sidebar) using one third of the window
|
||||
autocmd BufEnter,FileType help* wincmd L|wincmd h|vs|wincmd =|q|wincmd l
|
||||
"load help in an 80 char vertical split if the window is wider than 140 characters, otherwise load horizontally at 33% of the height
|
||||
autocmd BufEnter,FileType help* if &columns >= 140|wincmd L|vertical resize 80|else|wincmd j|sp|wincmd =|q|wincmd k|endif
|
||||
|
||||
"settings for buffers in diff mode
|
||||
autocmd VimEnter,FilterWritePre * if &diff|setlocal nofoldenable|endif
|
||||
|
|
Loading…
Reference in a new issue