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 25403e6cb5..7b449630e9 100644 --- a/meta-xfce/recipes-support/vim/vim_%.bbappend +++ b/meta-xfce/recipes-support/vim/vim_%.bbappend @@ -1,6 +1 @@ -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 -} +require ${@bb.utils.contains('DISTRO_FEATURES', 'x11', '${BPN}_xfce.inc', '', d)} 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 0000000000..25403e6cb5 --- /dev/null +++ b/meta-xfce/recipes-support/vim/vim_xfce.inc @@ -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 +} |