vim: Enable cursor shapes
[termux-packages] / packages / vim-python / vimrc
... / ...
CommitLineData
1set autowrite
2set backspace=2
3set encoding=utf-8
4set hlsearch
5set ignorecase
6set incsearch
7set mouse=a
8set nocompatible
9set smartcase
10set smartindent
11set title
12
13syntax on
14
15" Set beam shape in insert mode, underline shape in replace mode and block shape in normal mode.
16let &t_SI = "\<Esc>[6 q"
17let &t_SR = "\<Esc>[4 q"
18let &t_EI = "\<Esc>[2 q"
19
20" Scroll only one line for mouse wheel events to get smooth scrolling on touch screens
21map <ScrollWheelUp> <C-Y>
22imap <ScrollWheelUp> <C-X><C-Y>
23map <ScrollWheelDown> <C-E>
24imap <ScrollWheelDown> <C-X><C-E>