Vim Tips Wiki
Advertisement

(Spit and Vspit)

Author(s)

Gaël Induni

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 source this file in your vimrc and that will remap sp and vsp abbreviation to my functions, 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 7.2), 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

Version changes

1.12010-02-09New 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.
1.0.12010-01-07Fixed bug: cannot split with files that does not exist.
1.02010-01-05Initial upload
Advertisement