Skip to content

Instantly share code, notes, and snippets.

@arbovm
Created November 14, 2012 14:39
Show Gist options
  • Save arbovm/4072493 to your computer and use it in GitHub Desktop.
Save arbovm/4072493 to your computer and use it in GitHub Desktop.
vi wrapper to parse colon line number adressing in path ( e.g. ~/.ssh/known_hosts:511 )
#!/bin/bash
# put this in your $PATH before /usr/bin, name it vi, chmod +x and enjoy
ARGS=$(echo $@ | sed 's/:/ +/g')
exec /usr/bin/vi $ARGS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment