#! /bin/sh /usr/share/dpatch/dpatch-run
## 10sensible_editor.dpatch by  <timo.schneider@s2004.tu-chemnitz.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Use sensible-editor instead of vim as editor

@DPATCH@

--- a/crip
+++ b/crip
@@ -71,7 +71,7 @@
 $editnames = "on";
 
 # Your favorite editor for editing filenames and tag files
-$editor = "vim";
+$editor = "sensible-editor";
 
 # Default contact information (put YOUR e-mail address here!)
 # Remember to escape the '@' (by putting a '\' before it).
--- a/editcomment
+++ b/editcomment
@@ -3,7 +3,7 @@
 # Supports both .ogg and .flac files.
 
 # Put preferred editor here
-$editor = "vim";
+$editor = "sensible-editor";
 
 $file = $ARGV[0];
 
--- a/editfilenames
+++ b/editfilenames
@@ -4,7 +4,7 @@
 #
 
 # Put preferred editor here
-$editor = "vim";
+$editor = "sensible-editor";
 
 # Temporary filename
 $tmpfile = "/tmp/filelist.txt";
