-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixit: small util to quickly fix compiler errors
- Loading branch information
Alexander Bernauer
committed
Oct 6, 2012
1 parent
ea3d152
commit 0c55928
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!" |