summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2014-08-21 15:04:52 -0300
committerSilvio Rhatto <rhatto@riseup.net>2014-08-21 15:04:52 -0300
commitbfd718703aac6fe706ee751f232b0e80601913d1 (patch)
treeb7541fdd334d1a02e3405654a11d9ec61f0ee129 /lib
parentdf97a807e2c13a5d020d72f07058904b60f19cfd (diff)
downloadkeyringer-bfd718703aac6fe706ee751f232b0e80601913d1.tar.gz
keyringer-bfd718703aac6fe706ee751f232b0e80601913d1.tar.bz2
Moving editors' files to shared folder
Diffstat (limited to 'lib')
-rw-r--r--lib/keyringer/editors/vim5
-rwxr-xr-xlib/keyringer/functions2
2 files changed, 1 insertions, 6 deletions
diff --git a/lib/keyringer/editors/vim b/lib/keyringer/editors/vim
deleted file mode 100644
index 0f877df..0000000
--- a/lib/keyringer/editors/vim
+++ /dev/null
@@ -1,5 +0,0 @@
-" Use sane defaults for VIM to avoid data leakage
-" See https://keyringer.pw/trac/ticket/50
-set nowritebackup
-set nobackup
-set viminfo="NONE"
diff --git a/lib/keyringer/functions b/lib/keyringer/functions
index 5dbb6b4..42c047d 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 -S `dirname $LIB`/editors/vim"
+ EDITOR="$EDITOR -S $SHARE/editors/vim"
fi
fi