sponsor Vim development Vim logo Vim Book Ad

SpitVspit : Powerful multiple files splitting.

 script karma  Rating 36/13, Downloaded by 2082  Comments, bugs, improvements  Vim wiki

created by
Gaël Induni
 
script type
utility
 
description
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
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
SpitVspit_2_2.tar.gz 2.2 2012-05-23 7.0 Gaël Induni Enabling calling Spit with a count to act like :5split
SpitVspit_2_1_3.tar.gz 2.1.3 2012-02-21 7.0 Gaël Induni Replaced almost all single-quoted string with double-quoted ones
SpitVspit_2_1_1.tar.gz 2.1.1 2011-02-02 7.0 Gaël Induni Added help for Wspit command
SpitVspit_2_1.tar.gz 2.1 2011-01-28 7.0 Gaël Induni New feature: Wspit with multiple arguments makes vsplit for the first and split the following. Try it yourself ;-)
SpitVspit.tar.gz 2.0.6 2010-12-29 7.0 Gaël Induni Fixed bug with regexp * character, prevent split the current file when using *.smth
SpitVspit.tar.gz 2.0.5 2010-12-19 7.0 Gaël Induni Minor bugs fixed.
SpitVspit.tar.gz 2.0.4 2010-12-19 7.0 Gaël Induni GetLatestVimScript compatible.
SpitVspit.tar.gz 2.0.3 2010-12-17 7.0 Gaël Induni Fixed some bugs caused by misuse of match(). Keeps all the already present args.
SpitVspit.tar.gz 2.0.2 2010-12-16 7.0 Gaël Induni When using E, keeps the current files in args. Added help file.
SpitVspit.vim 2.0.1 2010-12-16 7.0 Gaël Induni Added global variable to prevent many loadings.
SpitVspit.vim 2.0 2010-12-15 7.0 Gaël Induni 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).
SpitVspit.vim 1.2 2010-12-04 7.0 Gaël Induni Fixed minor bugs with spitup/down and vspitleft/right
SpitVspit.vim 1.1 2010-02-09 5.7 Gaël Induni 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.
SpitVspit.vim 1.0.1 2010-01-07 5.7 Gaël Induni Fixed bug: cannot split with files that does not exist.
SpitVspit.vim 1.0 2010-01-05 5.7 Gaël Induni Initial upload
ip used for rating: 18.191.13.255

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.
   
Vim at Github