summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-05-16 15:28:01 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-05-16 15:28:01 -0300
commit4c5157f9ffbae18f3914b5fb58c07e8d895f1732 (patch)
tree3c2ed96d1a95dd41d520040625517120ed740091 /lib
parent4759a178831bf003e2c962928be11db30feb8795 (diff)
downloadkeyringer-4c5157f9ffbae18f3914b5fb58c07e8d895f1732.tar.gz
keyringer-4c5157f9ffbae18f3914b5fb58c07e8d895f1732.tar.bz2
Use 'nobackup' and 'nowritebackup' if VIM is set as $EDITOR (#50)
Diffstat (limited to 'lib')
-rwxr-xr-xlib/keyringer/functions2
1 files changed, 1 insertions, 1 deletions
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