summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rwxr-xr-xlib/keyringer/functions2
2 files changed, 4 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index c068f9c..029a546 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-2014-04-11 - Silvio Rhatto <rhatto@riseup.net>
+2014-05-16 - Silvio Rhatto <rhatto@riseup.net>
+
+ Use 'nobackup' and 'nowritebackup' if VIM is set as $EDITOR (#50)
Find: rollback: use find+grep instead of 'find -iname' (#53)
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 59777d0..50d01db 100755
--- a/lib/keyringer/functions
+++ b/lib/keyringer/functions
@@ -287,7 +287,7 @@ function keyringer_set_env {
# Avoid viminfo, see https://keyringer.pw/trac/ticket/50
if $EDITOR --help | grep -q -e "^VIM"; then
if ! echo $EDITOR | grep -q -- "-i NONE"; then
- EDITOR="$EDITOR -i NONE"
+ EDITOR="$EDITOR -i NONE '+set nowritebackup' '+set nobackup'"
fi
fi