Alpha Chen 7 years ago
parent c83cf0a54e
commit 364b684757

3
.gitmodules vendored

@ -103,3 +103,6 @@
[submodule ".vim/pack/alpha/start/rainbow"] [submodule ".vim/pack/alpha/start/rainbow"]
path = .vim/pack/alpha/start/rainbow path = .vim/pack/alpha/start/rainbow
url = git@github.com:luochen1990/rainbow.git url = git@github.com:luochen1990/rainbow.git
[submodule ".vim/pack/alpha/start/gundo.vim"]
path = .vim/pack/alpha/start/gundo.vim
url = git@github.com:sjl/gundo.vim.git

@ -0,0 +1 @@
Subproject commit 46c443ee9d5854320eb965a1fdee781ba83a070e

@ -1,4 +1,6 @@
""" Mappings " vim:foldmethod=marker:foldlevel=0
" Mappings {{{
let mapleader="\<Space>" let mapleader="\<Space>"
@ -15,12 +17,16 @@ nnoremap <leader>/ :nohlsearch<cr>
" don't unindent lines starting with # " don't unindent lines starting with #
inoremap # X# inoremap # X#
""" Commands " }}}
" Commands {{{
set undolevels=1000 set undolevels=1000
set wildmode=list:longest,full set wildmode=list:longest,full
""" Display "}}}
" Display {{{
set background=dark set background=dark
let g:solarized_termcolors=256 let g:solarized_termcolors=256
@ -29,6 +35,8 @@ set background=dark
fun! s:highlight() fun! s:highlight()
highlight Normal ctermbg=235 highlight Normal ctermbg=235
highlight CursorLine ctermbg=236
highlight MatchParen ctermbg=238
endfun endfun
augroup MyHighlight augroup MyHighlight
@ -40,22 +48,27 @@ call s:highlight()
" highlight LongLine term=reverse cterm=reverse ctermfg=1 guifg=Black guibg=Yellow " highlight LongLine term=reverse cterm=reverse ctermfg=1 guifg=Black guibg=Yellow
" match LongLine /\%101v./ " match LongLine /\%101v./
set foldlevelstart=4 set foldlevelstart=6
set foldmethod=indent
set linebreak set linebreak
set list set list
let &listchars="tab:\u21e5 ,trail:\u2423,extends:\u21c9,precedes:\u21c7,nbsp:\u00b7" let &listchars="tab:\u21e5 ,trail:\u2423,extends:\u21c9,precedes:\u21c7,nbsp:\u00b7"
set number set number
" set ttyfast set ttyfast
set splitbelow set splitbelow
set splitright set splitright
set lazyredraw
" only show cursorline in current window
augroup CursorLine augroup CursorLine
au! au!
au VimEnter,WinEnter,BufWinEnter * setlocal cursorline au VimEnter,WinEnter,BufWinEnter * setlocal cursorline
au WinLeave * setlocal nocursorline au WinLeave * setlocal nocursorline
augroup END augroup END
""" Editing " }}}
" Editing {{{
" set hidden " set hidden
if !has("nvim") if !has("nvim")
@ -86,7 +99,9 @@ augroup netrw_buf_hidden_fix
\| endif \| endif
augroup end augroup end
""" GUI " }}}
" GUI {{{
if has("gui_running") if has("gui_running")
set background=light set background=light
@ -102,7 +117,9 @@ if !has("nvim")
endif endif
set mousehide set mousehide
""" Persistence " }}}
" Persistence {{{
set directory=~/.vim_tmp set directory=~/.vim_tmp
set encoding=utf8 set encoding=utf8
@ -112,13 +129,17 @@ set nobackup
set undodir=~/.vim_undo set undodir=~/.vim_undo
set undofile set undofile
""" Search " }}}
" Search {{{
set gdefault set gdefault
set hlsearch set hlsearch
set smartcase set smartcase
""" Plugins " }}}
" Plugins {{{
" incsearch " incsearch
let g:incsearch#auto_nohlsearch = 1 let g:incsearch#auto_nohlsearch = 1
@ -151,3 +172,11 @@ if isdirectory('/usr/local/opt/fzf')
nmap <Leader>f :Files<CR> nmap <Leader>f :Files<CR>
nmap <Leader>t :Tags<CR> nmap <Leader>t :Tags<CR>
endif endif
" rainbow
let g:rainbow_active = 0
" gundo
nnoremap <leader>u :GundoToggle<CR>
" }}}

Loading…
Cancel
Save