1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
| set number set linebreak set cursorline set cursorcolumn set tabstop=4 set expandtab set shiftwidth=4 set textwidth=120 set nowrap set guifont=Ubuntu\ Mono\ 13 set foldmethod=marker
let g:python3_host_prog = '/usr/bin/python3' let g:python_host_prog = '/usr/bin/python'
" Vim-Plug (no Plug) "{{{
call plug#begin('~/.vim/plugged')
Plug 'flazz/vim-colorschemes' Plug 'jlanzarotta/colorSchemeExplorer' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' Plug 'jpalardy/vim-slime' Plug 'edkolev/tmuxline.vim' Plug 'luochen1990/rainbow'
Plug 'troydm/zoomwintab.vim' Plug 'zhaocai/GoldenView.Vim' Plug 'kien/ctrlp.vim' Plug '907th/vim-auto-save'
Plug 'kshenoy/vim-signature' Plug 'dimasg/vim-mark' Plug 'terryma/vim-expand-region' Plug 'Lokaltog/vim-easymotion' Plug 'junegunn/vim-easy-align' Plug 'vim-scripts/VisIncr' Plug 'cohama/lexima.vim' Plug 'scrooloose/nerdcommenter' Plug 'majutsushi/tagbar'
call plug#end()
"------ ColorScheme个性化配置命令------"{{{ set background=dark
colors monokai-chris
hi Pmenu ctermbg=127 hi PmenuSel ctermbg=105
"------ vim-airline ------ "{{{ let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline#extensions#tabline#buffer_idx_mode = 1
nmap <leader>1 <Plug>AirlineSelectTab1 nmap <leader>2 <Plug>AirlineSelectTab2 nmap <leader>3 <Plug>AirlineSelectTab3 nmap <leader>4 <Plug>AirlineSelectTab4 nmap <leader>5 <Plug>AirlineSelectTab5 nmap <leader>6 <Plug>AirlineSelectTab6 nmap <leader>7 <Plug>AirlineSelectTab7 nmap <leader>8 <Plug>AirlineSelectTab8 nmap <leader>9 <Plug>AirlineSelectTab9
let g:airline#extensions#tmuxline#enabled = 1 let g:airline_theme="tomorrow"
let airline#extensions#tmuxline#color_template = 'visual'
"------ tagbar ------ "{{{ nnoremap tb :TagbarToggle<CR> let g:tagbar_sort = 0 let g:tagbar_width = 50 let g:tagbar_autofocus = 1 let g:tagbar_show_linenumbers = 2 let g:tagbar_autoclose = 1 let g:tagbar_autoshowtag = 1
"------ GoldenView ------"{{{ let g:goldenview__enable_at_startup = 0 let g:goldenview__enable_default_mapping=0 nmap <silent> sv <Plug>GoldenViewSplit nmap <silent> tm <Plug>GoldenViewSwitchMain nmap <silent> ts <Plug>GoldenViewSwitchToggle nmap <silent> tf <Plug>ToggleGoldenViewAutoResize nmap <silent> sn <Plug>GoldenViewNext nmap <silent> sp <Plug>GoldenViewPrevious nmap <silent> tn :tabn<CR> nmap <silent> tp :tabp<CR>
"------ luochen1990/rainbow 彩色括号 ------"{{{ let g:rainbow_active = 1 let g:rainbow_conf = { \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick'], \ 'ctermfgs': ['lightblue', 'lightyellow', 'lightcyan', 'lightmagenta'], \ 'operators': '_,_', \ 'parentheses': ['start=/(/ end=/)/ fold', 'start=/\[/ end=/\]/ fold', 'start=/{/ end=/}/ fold'], \ 'separately': { \ '*': {}, \ 'tex': { \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/'], \ }, \ 'lisp': { \ 'guifgs': ['royalblue3', 'darkorange3', 'seagreen3', 'firebrick', 'darkorchid3'], \ }, \ 'vim': { \ 'parentheses': ['start=/(/ end=/)/', 'start=/\[/ end=/\]/', 'start=/{/ end=/}/ fold', 'start=/(/ end=/)/ containedin=vimFuncBody', 'start=/\[/ end=/\]/ containedin=vimFuncBody', 'start=/{/ end=/}/ fold containedin=vimFuncBody'], \ }, \ 'html': { \ 'parentheses': ['start=/\v\<((area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)[ >])@!\z([-_:a-zA-Z0-9]+)(\s+[-_:a-zA-Z0-9]+(\=("[^"]*"|'."'".'[^'."'".']*'."'".'|[^ '."'".'"><=`]*))?)*\>/ end=#</\z1># fold'], \ }, \ 'css': 0, \ } \}
"------ vim-auto-save -------"{{{ let g:auto_save = 1 let g:auto_save_no_updatetime = 1 let g:auto_save_in_insert_mode = 0 "let g:auto_save_postsave_hook = 'TagsGenerate' " this will run :TagsGenerate after each sav "let g:auto_save_events = ["InsertLeave", "TextChanged let g:auto_save_keep_marks = 0
let g:slime_target = "tmux"
xmap ga <Plug>(EasyAlign) nmap ga <Plug>(EasyAlign)
let g:mwDefaultHighlightingPalette = 'extended' let g:mwDefaultHighlightingNum = 9
map , <Plug>(easymotion-prefix)
let g:ctrlp_max_depth = 3
|