Skip to content
/ vyl Public

Run 'vi' against the results of the last command you ran

Notifications You must be signed in to change notification settings

ivanjensen/vyl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vyl

Runs 'vi' against one of the results of the last command you ran.

Example usage

Basic case (one result):

$ find . -name fred
./fred
$ vyl
----> vi now opens to edit the file ./fred

Multiple results:

$ find . -name fred
./fred
./src/fred
$ vyl 2
----> vi now opens to edit the file ./src/fred

Use a differnt editor:

EITHER set EDITOR environment variable and vyl will use that by default

$ export EDITOR=nano
$ find . -name fred
./fred
./src/fred
$ vyl
----> vi now opens ./fred in nano

OR specify it as the third parameter (you will have to supply the line number even if there's only one).

$ find . -name fred
./fred
./src/fred
$ vyl 1 nano
----> vi now opens ./fred in nano

Installation

Clone the git repo and then symlink vyl into to a direectory that is on your path

git clone https://github.com/ivanjensen/vyl.git ~/Projects/vyl
ln -s ~/Projects/vyl ~/bin

License

vyl is release under the MIT license, please see the comments in vyl for the full license text

Contributing

Fork the repo, hack away, send a github pull-request.

What's with the name?

The name started as 'vil' which was short for 'vi last' as in 'vi' the last result I got. But an amusing mistake led to 'vyl', which is pronounced 'vile', which is a nice, but nasty name :)

About

Run 'vi' against the results of the last command you ran

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages