Skip to content

Instantly share code, notes, and snippets.

@yosske
Last active June 21, 2016 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yosske/8478a7f2558107f5d51822aff9406628 to your computer and use it in GitHub Desktop.
Save yosske/8478a7f2558107f5d51822aff9406628 to your computer and use it in GitHub Desktop.
vimp stands for "vim pipe" and can be used to "pipe" filenames into the vim editor
#!/bin/sh
xargs bash -c '</dev/tty vim "$@"' ignoredparam
exit 0
@yosske
Copy link
Author

yosske commented Jun 6, 2016

vimp stands for "vim pipe" and can be used to "pipe" filenames into the vim editor.

Example usage:
ls *.sh | vimp

Possible Installation Method (Linux):

Create "vimp" file inside /usr/local/bin, paste code inside file and then run chmod +x vimp to make sure the file is runable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment