Wikia

Vim Tips Wiki

Changes: Script:2918

Edit

Back to page

m (Install details: updated list of commands used)
(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
 
Line 1: Line 1:
{{ScriptComments|2918|SpitVspit: multiple files splitting}}
+
{{ScriptComments|SpitVspit: multiple files splitting}}
 
====Author====
 
[[User:Xonqnopp|XonqNopp]]
 
   
 
==Description==
 
==Description==
Line 8: Line 8:
 
You just have to source this file in your vimrc and that will remap sp, vsp and e abbreviation to my functions.
 
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. Author: [[User:Xonqnopp|XonqNopp]]
   
 
==Features==
 
==Features==
:(v)sp *.m new_file.pl hello_world.cpp
+
<pre>
:e new_file.tex my_bib.bib *.sh
+
:(v)sp *.m new_file.pl hello_world.cpp
  +
:e new_file.tex my_bib.bib *.sh
  +
</pre>
   
 
==Install details==
 
==Install details==
Line 24: Line 24:
 
* expand
 
* expand
 
* next
 
* next
  +
  +
==Comments==

Latest revision as of 07:46, November 15, 2011

Use this page to discuss script 2918 SpitVspit: multiple files splitting

  • 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.

DescriptionEdit

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. Author: XonqNopp

FeaturesEdit

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

Install detailsEdit

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

CommentsEdit

Around Wikia's network

Random Wiki