utf8proc: Update from 2.1.0 to 2.1.1
[termux-packages] / packages / vim-python / vimrc
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>
6
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:
9 set mouse=a
10
11 " sensible.vim - Defaults everyone can agree on
12 " Maintainer: Tim Pope <http://tpo.pe/>
13 " Version: 1.1
14
15 set nocompatible
16 let g:loaded_sensible = 1
17
18 filetype plugin indent on
19 syntax enable
20
21 set autoindent
22 set backspace=indent,eol,start
23 set complete-=i
24 set smarttab
25
26 set nrformats-=octal
27
28 set ttimeout
29 set ttimeoutlen=100
30
31 set incsearch
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>
35 endif
36
37 set laststatus=2
38 set ruler
39 set wildmenu
40
41 if !&scrolloff
42 set scrolloff=1
43 endif
44 if !&sidescrolloff
45 set sidescrolloff=5
46 endif
47 set display+=lastline
48
49 if &encoding ==# 'latin1' && has('gui_running')
50 set encoding=utf-8
51 endif
52
53 if &listchars ==# 'eol:$'
54 set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
55 endif
56
57 if v:version > 703 || v:version == 703 && has("patch541")
58 set formatoptions+=j " Delete comment character when joining commented lines
59 endif
60
61 if has('path_extra')
62 setglobal tags-=./tags tags-=./tags; tags^=./tags;
63 endif
64
65 set autoread
66
67 if &history < 1000
68 set history=1000
69 endif
70 if &tabpagemax < 50
71 set tabpagemax=50
72 endif
73 if !empty(&viminfo)
74 set viminfo^=!
75 endif
76 set sessionoptions-=options
77
78 " Allow color schemes to do bright colors without forcing bold.
79 if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
80 set t_Co=16
81 endif
82
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
86 endif
87
88 inoremap <C-U> <C-G>u<C-U>