|
|
@ -1,31 +1,104 @@
|
|
|
|
syntax on
|
|
|
|
if has('syntax') && !exists('g:syntax_on')
|
|
|
|
filetype plugin on
|
|
|
|
syntax enable
|
|
|
|
filetype indent on
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
"colorscheme PaperColor
|
|
|
|
if has('autocmd')
|
|
|
|
"colorscheme solarized
|
|
|
|
filetype plugin on
|
|
|
|
colorscheme wombat
|
|
|
|
filetype indent on
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
set backspace=indent,eol,start
|
|
|
|
|
|
|
|
set complete-=i
|
|
|
|
|
|
|
|
set smarttab
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set nrformats-=octal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if !has('nvim') && &ttimeoutlen == -1
|
|
|
|
|
|
|
|
set ttimeout
|
|
|
|
|
|
|
|
set ttimeoutlen=100
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
" Use <C-L> to clear the highlighting of :set hlsearch.
|
|
|
|
|
|
|
|
if maparg('<C-L>', 'n') ==# ''
|
|
|
|
|
|
|
|
nnoremap <silent> <C-L> :nohlsearch<C-R>=has('diff')?'<Bar>diffupdate':''<CR><CR><C-L>
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set laststatus=2
|
|
|
|
|
|
|
|
set ruler
|
|
|
|
|
|
|
|
set wildmenu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Status
|
|
|
|
|
|
|
|
" ~/file [type] [line,column] [number of lines]
|
|
|
|
|
|
|
|
set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if !&scrolloff
|
|
|
|
|
|
|
|
set scrolloff=1
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !&sidescrolloff
|
|
|
|
|
|
|
|
set sidescrolloff=5
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
set display+=lastline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if &encoding ==# 'latin1' && has('gui_running')
|
|
|
|
|
|
|
|
set encoding=utf-8
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if &listchars ==# 'eol:$'
|
|
|
|
|
|
|
|
set listchars=tab:\ \ ,trail:…,extends:>,precedes:<,nbsp:+
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if v:version > 703 || v:version == 703 && has("patch541")
|
|
|
|
|
|
|
|
set formatoptions+=j " Delete comment character when joining commented lines
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if has('path_extra')
|
|
|
|
|
|
|
|
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set autoread
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if &history < 10000
|
|
|
|
|
|
|
|
set history=10000
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if &tabpagemax < 50
|
|
|
|
|
|
|
|
set tabpagemax=50
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
if !empty(&viminfo)
|
|
|
|
|
|
|
|
set viminfo^=!
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
set sessionoptions-=options
|
|
|
|
|
|
|
|
set viewoptions-=options
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Allow color schemes to do bright colors without forcing bold.
|
|
|
|
|
|
|
|
if &t_Co == 8 && $TERM !~# '^Eterm'
|
|
|
|
|
|
|
|
set t_Co=16
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
set t_Co=256
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if empty(mapcheck('<C-U>', 'i'))
|
|
|
|
|
|
|
|
inoremap <C-U> <C-G>u<C-U>
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if empty(mapcheck('<C-W>', 'i'))
|
|
|
|
|
|
|
|
inoremap <C-W> <C-G>u<C-W>
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
" Basics
|
|
|
|
" Basics
|
|
|
|
set t_Co=256
|
|
|
|
set encoding=utf-8
|
|
|
|
set encoding=utf8
|
|
|
|
|
|
|
|
set nocompatible
|
|
|
|
|
|
|
|
set background=dark
|
|
|
|
|
|
|
|
" set background=light
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" General
|
|
|
|
" General
|
|
|
|
" setlocal spell spelllang=en_us
|
|
|
|
" setlocal spell spelllang=en_us
|
|
|
|
set fileformats=unix,dos,mac
|
|
|
|
set fileformats=unix,dos,mac
|
|
|
|
set nostartofline
|
|
|
|
set nostartofline
|
|
|
|
set history=10000
|
|
|
|
|
|
|
|
set autoread
|
|
|
|
|
|
|
|
set autochdir
|
|
|
|
set autochdir
|
|
|
|
set colorcolumn=81
|
|
|
|
set colorcolumn=81
|
|
|
|
|
|
|
|
|
|
|
|
" Have tab complete work more like bash
|
|
|
|
" Have tab complete work more like bash
|
|
|
|
set wildmenu
|
|
|
|
|
|
|
|
set wildmode=list:longest
|
|
|
|
set wildmode=list:longest
|
|
|
|
set backspace=start,eol,indent
|
|
|
|
|
|
|
|
set whichwrap+=<,>,[,]
|
|
|
|
set whichwrap+=<,>,[,]
|
|
|
|
set magic
|
|
|
|
set magic
|
|
|
|
|
|
|
|
|
|
|
@ -41,27 +114,19 @@ set softtabstop=4
|
|
|
|
set tabstop=4
|
|
|
|
set tabstop=4
|
|
|
|
|
|
|
|
|
|
|
|
" Indent
|
|
|
|
" Indent
|
|
|
|
set autoindent
|
|
|
|
|
|
|
|
set smartindent
|
|
|
|
set smartindent
|
|
|
|
set copyindent
|
|
|
|
set copyindent
|
|
|
|
set preserveindent
|
|
|
|
set preserveindent
|
|
|
|
set shiftround
|
|
|
|
set shiftround
|
|
|
|
|
|
|
|
|
|
|
|
" Status
|
|
|
|
|
|
|
|
" ~/file [type] [line,column] [number of lines]
|
|
|
|
|
|
|
|
set statusline=%F%m%r%h%w\ [%Y]\ [%03l,%03v]\ [%L]
|
|
|
|
|
|
|
|
set laststatus=2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Text Formatting/Layout
|
|
|
|
" Text Formatting/Layout
|
|
|
|
set nowrap
|
|
|
|
set nowrap
|
|
|
|
set ignorecase
|
|
|
|
set ignorecase
|
|
|
|
set smartcase
|
|
|
|
set smartcase
|
|
|
|
set list
|
|
|
|
set list
|
|
|
|
set listchars=tab:\ \ ,trail:…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" UI
|
|
|
|
" UI
|
|
|
|
set showcmd
|
|
|
|
set showcmd
|
|
|
|
set ruler
|
|
|
|
|
|
|
|
set number relativenumber
|
|
|
|
set number relativenumber
|
|
|
|
set numberwidth=4
|
|
|
|
set numberwidth=4
|
|
|
|
set hidden
|
|
|
|
set hidden
|
|
|
@ -70,10 +135,7 @@ set hidden
|
|
|
|
set showmatch
|
|
|
|
set showmatch
|
|
|
|
set matchtime=2
|
|
|
|
set matchtime=2
|
|
|
|
set hlsearch
|
|
|
|
set hlsearch
|
|
|
|
set incsearch
|
|
|
|
|
|
|
|
set scrolloff=5
|
|
|
|
|
|
|
|
set sidescrolloff=5
|
|
|
|
|
|
|
|
set noerrorbells
|
|
|
|
set noerrorbells
|
|
|
|
set novisualbell
|
|
|
|
set novisualbell
|
|
|
|
set t_vb=
|
|
|
|
set t_vb=
|
|
|
|
set tm=500
|
|
|
|
set timeoutlen=500
|
|
|
|