Skip to contentSkip to conversation

vim: do not autoenable the mouse

PATCH New [email protected] 1 participant 1 message Oct 16, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 vim: do not autoenable the mouse

From: Jackie Huang <[email protected]>

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.

---
 meta-xfce/recipes-support/vim/vim_%.bbappend | 6 ++++++
 1 file changed, 6 insertions(+)
 create mode 100644 meta-xfce/recipes-support/vim/vim_%.bbappend
meta-xfce/recipes-support/vim/vim_%.bbappend new file +6 -0
new file mode 100644
index 0000000..25403e6
@@ -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
+}
Signature · 1 line
1.9.1