diff options
-rw-r--r-- | meta-xfce/recipes-support/vim/vim_%.bbappend | 7 | ||||
-rw-r--r-- | meta-xfce/recipes-support/vim/vim_xfce.inc | 6 |
2 files changed, 7 insertions, 6 deletions
diff --git a/meta-xfce/recipes-support/vim/vim_%.bbappend b/meta-xfce/recipes-support/vim/vim_%.bbappend index 25403e6cb..7b449630e 100644 --- a/meta-xfce/recipes-support/vim/vim_%.bbappend +++ b/meta-xfce/recipes-support/vim/vim_%.bbappend | |||
@@ -1,6 +1 @@ | |||
1 | do_install_append() { | require ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${BPN}_xfce.inc', '', d)} | |
2 | # The mouse being autoenabled is just annoying in xfce4-terminal (mouse | ||
3 | # drag make vim go into visual mode and there is no right click menu), | ||
4 | # delete the block. | ||
5 | sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc | ||
6 | } | ||
diff --git a/meta-xfce/recipes-support/vim/vim_xfce.inc b/meta-xfce/recipes-support/vim/vim_xfce.inc new file mode 100644 index 000000000..25403e6cb --- /dev/null +++ b/meta-xfce/recipes-support/vim/vim_xfce.inc | |||
@@ -0,0 +1,6 @@ | |||
1 | do_install_append() { | ||
2 | # The mouse being autoenabled is just annoying in xfce4-terminal (mouse | ||
3 | # drag make vim go into visual mode and there is no right click menu), | ||
4 | # delete the block. | ||
5 | sed -i '/the mouse works just fine/,+4d' ${D}/${datadir}/${BPN}/vimrc | ||
6 | } | ||