vim-smartsplit

You're lazy. Let Vim decide your split directions.
git clone git://git.danielmoch.com/vim-smartsplit.git
Log | Files | Refs | README

commit e76111a781bc2b53632e66ac5df1a8ea892cdef0
parent f937f35271cc43918cf481aa9a493b33c5d50719
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Fri,  1 Nov 2019 06:13:44 -0400

Create and document :ScratchBuffer

Diffstat:
Mdoc/smartsplit.vim | 5+++++
Mplugin/smartsplit.vim | 1+
2 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/doc/smartsplit.vim b/doc/smartsplit.vim @@ -60,6 +60,11 @@ CmdSplit {cmd} A smart version of |:vertical|. Horizontal versus vertical splitting is determined as described in |:Split|. + *smartsplit-ScratchBuffer* *:ScratchBuffer* +ScratchBuffer Open a scratch buffer (see |special-buffers|). + Horizontal versus vertical splitting is determined + as described in |:Split|. + ============================================================================= 2. ABOUT *smartsplit-about* diff --git a/plugin/smartsplit.vim b/plugin/smartsplit.vim @@ -85,6 +85,7 @@ command! -complete=help -nargs=1 Help call <sid>Help(<f-args>) command! -complete=buffer -nargs=1 Buffer call <sid>Buffer(<f-args>) command! -complete=command -nargs=1 CmdSplit call <sid>CmdSplit(<f-args>) command! Split call <sid>Buffer() +command! ScratchBuffer call <sid>ScratchBuffer() let &cpo = s:save_cpo unlet s:save_cpo