|
@ -1,3 +1,6 @@ |
|
|
|
|
|
" Ensure that <> notation works for the mappings that follow |
|
|
|
|
|
set nocompatible |
|
|
|
|
|
|
|
|
" Scroll only one line for mouse wheel events to get smooth scrolling on touch screens |
|
|
" Scroll only one line for mouse wheel events to get smooth scrolling on touch screens |
|
|
map <ScrollWheelUp> <C-Y> |
|
|
map <ScrollWheelUp> <C-Y> |
|
|
imap <ScrollWheelUp> <C-X><C-Y> |
|
|
imap <ScrollWheelUp> <C-X><C-Y> |
|
@ -10,13 +13,22 @@ set mouse=a |
|
|
|
|
|
|
|
|
" sensible.vim - Defaults everyone can agree on |
|
|
" sensible.vim - Defaults everyone can agree on |
|
|
" Maintainer: Tim Pope <http://tpo.pe/> |
|
|
" Maintainer: Tim Pope <http://tpo.pe/> |
|
|
" Version: 1.1 |
|
|
" Version: 1.2 |
|
|
|
|
|
|
|
|
set nocompatible |
|
|
if exists('g:loaded_sensible') || &compatible |
|
|
let g:loaded_sensible = 1 |
|
|
finish |
|
|
|
|
|
else |
|
|
|
|
|
let g:loaded_sensible = 'yes' |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if has('autocmd') |
|
|
|
|
|
filetype plugin indent on |
|
|
|
|
|
endif |
|
|
|
|
|
if has('syntax') && !exists('g:syntax_on') |
|
|
|
|
|
syntax enable |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
filetype plugin indent on |
|
|
" Use :help 'option' to see the documentation for the given option. |
|
|
syntax enable |
|
|
|
|
|
|
|
|
|
|
|
set autoindent |
|
|
set autoindent |
|
|
set backspace=indent,eol,start |
|
|
set backspace=indent,eol,start |
|
@ -25,8 +37,10 @@ set smarttab |
|
|
|
|
|
|
|
|
set nrformats-=octal |
|
|
set nrformats-=octal |
|
|
|
|
|
|
|
|
set ttimeout |
|
|
if !has('nvim') && &ttimeoutlen == -1 |
|
|
set ttimeoutlen=100 |
|
|
set ttimeout |
|
|
|
|
|
set ttimeoutlen=100 |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
set incsearch |
|
|
set incsearch |
|
|
" Use <C-L> to clear the highlighting of :set hlsearch. |
|
|
" Use <C-L> to clear the highlighting of :set hlsearch. |
|
@ -46,7 +60,9 @@ if !&sidescrolloff |
|
|
endif |
|
|
endif |
|
|
set display+=lastline |
|
|
set display+=lastline |
|
|
|
|
|
|
|
|
set encoding=utf-8 |
|
|
if &encoding ==# 'latin1' && has('gui_running') |
|
|
|
|
|
set encoding=utf-8 |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
if &listchars ==# 'eol:$' |
|
|
if &listchars ==# 'eol:$' |
|
|
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ |
|
|
set listchars=tab:>\ ,trail:-,extends:>,precedes:<,nbsp:+ |
|
@ -60,6 +76,10 @@ if has('path_extra') |
|
|
setglobal tags-=./tags tags-=./tags; tags^=./tags; |
|
|
setglobal tags-=./tags tags-=./tags; tags^=./tags; |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
|
|
|
if &shell =~# 'fish$' && (v:version < 704 || v:version == 704 && !has('patch276')) |
|
|
|
|
|
set shell=/data/data/com.termux/files/usr/bin/env\ bash |
|
|
|
|
|
endif |
|
|
|
|
|
|
|
|
set autoread |
|
|
set autoread |
|
|
|
|
|
|
|
|
if &history < 1000 |
|
|
if &history < 1000 |
|
@ -84,3 +104,5 @@ if !exists('g:loaded_matchit') && findfile('plugin/matchit.vim', &rtp) ==# '' |
|
|
endif |
|
|
endif |
|
|
|
|
|
|
|
|
inoremap <C-U> <C-G>u<C-U> |
|
|
inoremap <C-U> <C-G>u<C-U> |
|
|
|
|
|
|
|
|
|
|
|
" vim:set ft=vim et sw=2: |
|
|