mirror of
https://github.com/termux-pacman/termux-packages.git
synced 2026-01-04 18:10:45 +00:00
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.
This commit is contained in:
@@ -4,6 +4,10 @@ imap <ScrollWheelUp> <C-X><C-Y>
|
||||
map <ScrollWheelDown> <C-E>
|
||||
imap <ScrollWheelDown> <C-X><C-E>
|
||||
|
||||
" 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 <http://tpo.pe/>
|
||||
" Version: 1.1
|
||||
|
||||
Reference in New Issue
Block a user