Skip to content

Commit

Permalink
fixit: small util to quickly fix compiler errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bernauer committed Oct 6, 2012
1 parent ea3d152 commit 0c55928
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions fixit
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
#!/bin/bash

file=`xclip -o`
IFS=:
set $file

if [ -z $2 -o -z $3 ]; then
echo "illegal selection '$file'" >&2
exit 1
fi

if [ ! -e $1 ]; then
echo "file '$1' does not exist" >&2
exit 1
fi


/usr/bin/vim $1 "+call cursor($2, $3)" -c "foldopen!"

0 comments on commit 0c55928

Please sign in to comment.