(add Template:ScriptComments and minor clean)
(Update version 2.0)
Line 6: Line 6:
 
==Description==
 
==Description==
 
This is a little script I did because I have always wanted to type
 
This is a little script I did because I have always wanted to type
<pre>:sp a.cpp b.hpp *.tex......</pre>
+
:sp a.cpp b.hpp *.tex......
 
This does it now!
 
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 <tt>:vsp *.txt</tt>
+
You just have to source this file in your vimrc and that will remap sp, vsp and e abbreviation to my functions.
   
 
Let me know if you find some bugs ;-)
 
Let me know if you find some bugs ;-)
  +
  +
==Features==
  +
:(v)sp *.m new_file.pl hello_world.cpp
  +
:e new_file.tex my_bib.bib *.sh
   
 
==Install details==
 
==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:
+
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
 
*(v)split
  +
*args
 
*substitute
 
*substitute
 
*command
 
*command

Revision as of 07:47, 15 December 2010

Use this page to discuss script 2918 2918

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Author

Gaël Induni

Description

This is a little script I did because I have always wanted to type

:sp a.cpp b.hpp *.tex......

This does it now!

You just have to source this file in your vimrc and that will remap sp, vsp and e abbreviation to my functions.

Let me know if you find some bugs ;-)

Features

:(v)sp *.m new_file.pl hello_world.cpp
:e new_file.tex my_bib.bib *.sh

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
  • args
  • substitute
  • command
  • cabclear
Community content is available under CC-BY-SA unless otherwise noted.