about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
Diffstat (limited to 'subx')
-rwxr-xr-xsubx/edit9
1 files changed, 7 insertions, 2 deletions
diff --git a/subx/edit b/subx/edit
index 03a2c284..517e1f75 100755
--- a/subx/edit
+++ b/subx/edit
@@ -7,9 +7,14 @@ then
   exit 1
 fi
 
+if [[ $EDITOR == *'vim'* ]]
+then
+  LOCAL_SETTINGS='-S vimrc.vim'
+fi
+
 if [[ $1 == 'ex'* ]]
 then
-  eval $EDITOR examples/$1.subx
+  eval $EDITOR $LOCAL_SETTINGS examples/$1.subx
 else
-  eval $EDITOR apps/$1.subx
+  eval $EDITOR $LOCAL_SETTINGS apps/$1.subx
 fi