aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJackie Huang <jackie.huang@windriver.com>2015-10-16 15:27:09 +0800
committerMartin Jansa <Martin.Jansa@gmail.com>2015-10-23 12:53:22 +0200
commit2effb83c6adb73c4047f482bd67d218ad03f67f9 (patch)
treeb4b3a0e7018d0a521eb6f98d041530b9b53426bb
parent3c3908a03abb93d901e67ceaedeadc51fdb8eab3 (diff)
downloadmeta-openembedded-contrib-2effb83c6adb73c4047f482bd67d218ad03f67f9.tar.gz
meta-openembedded-contrib-2effb83c6adb73c4047f482bd67d218ad03f67f9.tar.bz2
meta-openembedded-contrib-2effb83c6adb73c4047f482bd67d218ad03f67f9.zip
vim: do not autoenable the mouse
The mouse being autoenabled is just annoying in xfce4-terminal (mouse drag make vim go into visual mode and there is no right click menu), so remove the setting for xfce. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
-rw-r--r--meta-xfce/recipes-support/vim/vim_%.bbappend6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta-xfce/recipes-support/vim/vim_%.bbappend b/meta-xfce/recipes-support/vim/vim_%.bbappend
new file mode 100644
index 0000000000..25403e6cb5
--- /dev/null
+++ b/meta-xfce/recipes-support/vim/vim_%.bbappend
@@ -0,0 +1,6 @@
+do_install_append() {
+ # The mouse being autoenabled is just annoying in xfce4-terminal (mouse
+ # drag make vim go into visual mode and there is no right click menu),
+ # delete the block.
+ sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc
+}