This is a little script I did because I have always wanted to type
:sp a.cpp b.hpp *.tex......
So... This does it now!
You just have to put this file in the plugin directory and the help in the doc directory and that will remap sp and vsp abbreviation to my function, allowing you to type :vsp *.txt
Let me know if you find some bugs ;-)
install details
I don't know about what came in which version (I run the latest), but the commands you need for my script are very basic and I think they are in Vim for a long time now:
- (v)split
- substitute
- command
- cabclear
- splitright/splitbelow
- args/argadd
- expand
- next
Completely rewritten the script to use only one function using more arguments. New features: command :e also supported in the same way (using *.m or creating new files).
New features: SpitUp (spu), SpitDown (spd), VspitLeft (vspl) and VspitRight (vspr) allow you to choose where to split if you want... Otherwise there are still the usual Spit and Vspit functions that work according to your settings in your vimrc about the splitright and splitbelow parameters.
If you have questions or remarks about this site, visit the
vimonline development pages.
Please use this site responsibly.
Questions about Vim should go
to the maillist.
Help Bram help Uganda.