Commit Graph

11 Commits

Author SHA1 Message Date
Leonid Pliushch
b598c47df7 vim, vim-python: replace /usr/bin with /data/data/com.termux/files/usr/bin in vimrc files 2019-04-13 18:27:01 +03:00
Shayne Holmes
5f630bd495 vim: Fix scroll mappings
The included `vimrc` file sets mappings for <ScrollWheelUp> and
<ScrollWheelDown>, so that scrolling is smooth. Unfortunately,
'compatible' is set by default [0], so the `<>` notation used for those
mappings isn't enabled. Instead of the key `<ScrollWheelUp>` being
mapped, the mapping is actually from the typed string "<ScrollWheelUp>".

[0]: `:help compatible-default` explains that vim will turn the
'compatible' option off when "a user vimrc is found", or under various
other conditions (note that the system-wide vimrc doesn't count [1]),
but even in the case where a user vimrc exists, this system-wide vimrc
is executed before that happens.

[1]: From `:help compatible-default`:

    Note that this does NOT happen when a system-wide vimrc file was
    found.
2019-04-09 15:18:12 -07:00
Shayne Holmes
aa0c59c6cf vim: Update sensible.vim 2019-04-09 15:17:54 -07:00
Fredrik Fornwall
816e58d1d9 vim: Set encoding to utf-8 unconditionally
Fixes #3011.
2018-11-11 13:41:27 +01:00
Fredrik Fornwall
bbf6c05668 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.
2017-04-09 17:43:39 +02:00
Fredrik Fornwall
f08afffc0b vim: Use sensible.vim as system vimrc 2017-02-08 00:00:13 +01:00
Fredrik Fornwall
4c4f1e9709 vim: Avoid customization
Starting with version 8.0 the default behaviour of vim is a lot more
user friendly.
2017-01-25 18:46:14 +01:00
Fredrik Fornwall
a9cd51d257 vim: Remove cursor shapes
Not every terminal emulator supports cursor shapes. Fixes #641.
2017-01-01 18:14:25 -05:00
Fredrik Fornwall
1c6ac27700 vim: Enable cursor shapes 2016-11-28 07:30:16 -05:00
Fredrik Fornwall
5082cc4939 vim: Set utf-8 as encoding in the system vimrc 2016-03-19 09:20:40 -04:00
Fredrik Fornwall
59f0d218a6 Initial push 2015-06-13 01:03:31 +02:00