Merge vim sensible from tpope with previous settings
This commit is contained in:
parent
b02c8b9391
commit
e0ee2e3259
@ -1,31 +1,104 @@
|
|||||||
syntax on
|
if has('syntax') && !exists('g:syntax_on')
|
||||||
|
syntax enable
|
||||||
|
endif
|
||||||
|
|
||||||
|
if has('autocmd')
|
||||||
filetype plugin on
|
filetype plugin on
|
||||||
filetype indent on
|
filetype indent on
|
||||||
|
endif
|
||||||
|
|
||||||
"colorscheme PaperColor
|
set autoindent
|
||||||
"colorscheme solarized
|
set backspace=indent,eol,start
|
||||||
colorscheme wombat
|
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
|
||||||
|
|||||||
2
vim/.config/vim/plugin/theme.vim
Normal file
2
vim/.config/vim/plugin/theme.vim
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
colorscheme wombat
|
||||||
|
set background=dark
|
||||||
@ -1,3 +1,7 @@
|
|||||||
|
" Setting nocompatible here because this setting can effect other settings.
|
||||||
|
" The vim help suggests this as the first setting because of the side effects.
|
||||||
|
set nocompatible
|
||||||
|
|
||||||
" Load from init.d instead of plugin directory. This is done so a leader key
|
" Load from init.d instead of plugin directory. This is done so a leader key
|
||||||
" can be set before loading plugin settings. This allows the plugin setting
|
" can be set before loading plugin settings. This allows the plugin setting
|
||||||
" files to set mappings with leader keys
|
" files to set mappings with leader keys
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user