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 " sensible.vim - Defaults everyone can agree on
8 " Maintainer: Tim Pope <http://tpo.pe/>
12 let g:loaded_sensible = 1
14 filetype plugin indent on
18 set backspace=indent,eol,start
28 " Use <C-L> to clear the highlighting of :set hlsearch.
29 if maparg('<C-L>', 'n') ==# ''
30 nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
45 if &encoding ==# 'latin1' && has('gui_running')
49 if &listchars ==# 'eol:$'
50 set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+
53 if v:version > 703 || v:version == 703 && has("patch541")
54 set formatoptions+=j " Delete comment character when joining commented lines
58 setglobal tags-=./tags tags-=./tags; tags^=./tags;
72 set sessionoptions-=options
74 " Allow color schemes to do bright colors without forcing bold.
75 if &t_Co == 8 && $TERM !~# '^linux\|^Eterm'
79 " Load matchit.vim, but only if the user hasn't installed a newer version.
80 if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# ''
81 runtime! macros/matchit.vim
84 inoremap <C-U> <C-G>u<C-U>