1 " Scroll only one line for mouse wheel events to get smooth scrolling on touch screens
2 map <ScrollWheelUp> <C-Y>
3 imap <ScrollWheelUp> <C-X><C-Y>
4 map <ScrollWheelDown> <C-E>
5 imap <ScrollWheelDown> <C-X><C-E>
7 " As of version 8, vim enables the mouse by default - but only if no ~/.vimrc
8 " is found. Enable that unconditionally for Termux as it's useful with touch:
11 " sensible.vim - Defaults everyone can agree on
12 " Maintainer: Tim Pope <http://tpo.pe/>
16 let g:loaded_sensible = 1
18 filetype plugin indent on
22 set backspace=indent,eol,start
32 " Use <C-L> to clear the highlighting of :set hlsearch.
33 if maparg('<C-L>', 'n') ==# ''
34 nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
49 if &encoding ==# 'latin1' && has('gui_running')
53 if &listchars ==# 'eol:$'
54 set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
57 if v:version > 703 || v:version == 703 && has("patch541")
58 set formatoptions+=j " Delete comment character when joining commented lines
62 setglobal tags-=./tags tags-=./tags; tags^=./tags;
76 set sessionoptions-=options
78 " Allow color schemes to do bright colors without forcing bold.
79 if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
83 " Load matchit.vim, but only if the user hasn't installed a newer version.
84 if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
85 runtime! macros/matchit.vim
88 inoremap <C-U> <C-G>u<C-U>