Permalink
Browse files

fixit: small util to quickly fix compiler errors

  • Loading branch information...
Alexander Bernauer
Alexander Bernauer committed Oct 6, 2012
1 parent ea3d152 commit 0c55928512a21c3a9cfb184aaf2602ab9546c8b9
Showing with 18 additions and 0 deletions.
  1. +18 −0 fixit
View
18 fixit
@@ -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.