From: Fredrik Fornwall Date: Sun, 9 Apr 2017 15:43:39 +0000 (+0200) Subject: vim: Set mouse=a in system vimrc X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/termux-packages/commitdiff_plain/489f59dd28da12e0f8d1415901745e41c8d2fa65 vim: Set mouse=a in system vimrc The mouse=a was removed after updating to vim 8 as vim by default now sets mouse=a. But this only works if no ~/.vimrc is found - if there is one then mouse won't be set. As we really want mouse=a on Termux since it is that useful on touch screens we enable it again regardless if there is a ~/.vimrc or not. Fixes #912. --- diff --git a/packages/vim-python/build.sh b/packages/vim-python/build.sh index daa34696..87d3b806 100755 --- a/packages/vim-python/build.sh +++ b/packages/vim-python/build.sh @@ -3,9 +3,9 @@ TERMUX_PKG_HOMEPAGE=http://www.vim.org/ TERMUX_PKG_DEPENDS="ncurses, vim-runtime, python" # Vim 8.0 patches described at ftp://ftp.vim.org/pub/vim/patches/8.0/README -TERMUX_PKG_VERSION=8.0.0542 +TERMUX_PKG_VERSION=8.0.0558 +TERMUX_PKG_SHA256=12ec11b81954d1529a5c891f7462dbde903dc8f029b568be8f3877b6573405ae TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz" -TERMUX_PKG_SHA256=ecd05c5e4dff3ed7125d23e2908eb39b699974d48c5f06c95a227afa1f6550d9 TERMUX_PKG_FOLDERNAME=vim-${TERMUX_PKG_VERSION} TERMUX_PKG_EXTRA_CONFIGURE_ARGS="vim_cv_toupper_broken=no vim_cv_terminfo=yes vim_cv_tty_group=world" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" vim_cv_getcwd_broken=no vim_cv_stat_ignores_slash=no vim_cv_memmove_handles_overlap=yes" diff --git a/packages/vim-python/vimrc b/packages/vim-python/vimrc index aa95f7fe..7f2111e3 100644 --- a/packages/vim-python/vimrc +++ b/packages/vim-python/vimrc @@ -4,6 +4,10 @@ imap map imap +" As of version 8, vim enables the mouse by default - but only if no ~/.vimrc +" is found. Enable that unconditionally for Termux as it's useful with touch: +set mouse=a + " sensible.vim - Defaults everyone can agree on " Maintainer: Tim Pope " Version: 1.1 diff --git a/packages/vim/build.sh b/packages/vim/build.sh index 53d3ff49..9949f5ff 100755 --- a/packages/vim/build.sh +++ b/packages/vim/build.sh @@ -3,9 +3,9 @@ TERMUX_PKG_HOMEPAGE=http://www.vim.org/ TERMUX_PKG_DEPENDS="ncurses, vim-runtime" # Vim 8.0 patches described at ftp://ftp.vim.org/pub/vim/patches/8.0/README -TERMUX_PKG_VERSION=8.0.0542 +TERMUX_PKG_VERSION=8.0.0558 +TERMUX_PKG_SHA256=12ec11b81954d1529a5c891f7462dbde903dc8f029b568be8f3877b6573405ae TERMUX_PKG_SRCURL="https://github.com/vim/vim/archive/v${TERMUX_PKG_VERSION}.tar.gz" -TERMUX_PKG_SHA256=ecd05c5e4dff3ed7125d23e2908eb39b699974d48c5f06c95a227afa1f6550d9 TERMUX_PKG_FOLDERNAME=vim-${TERMUX_PKG_VERSION} TERMUX_PKG_EXTRA_CONFIGURE_ARGS="vim_cv_toupper_broken=no vim_cv_terminfo=yes vim_cv_tty_group=world" TERMUX_PKG_EXTRA_CONFIGURE_ARGS+=" vim_cv_getcwd_broken=no vim_cv_stat_ignores_slash=no vim_cv_memmove_handles_overlap=yes" diff --git a/packages/vim/vimrc b/packages/vim/vimrc index aa95f7fe..7f2111e3 100644 --- a/packages/vim/vimrc +++ b/packages/vim/vimrc @@ -4,6 +4,10 @@ imap map imap +" As of version 8, vim enables the mouse by default - but only if no ~/.vimrc +" is found. Enable that unconditionally for Termux as it's useful with touch: +set mouse=a + " sensible.vim - Defaults everyone can agree on " Maintainer: Tim Pope " Version: 1.1