plugin.vim (3568B)
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 | " " author : Xu Xiaodong <[email protected]> " modified : 2016 Nov 13 " "-- plugin --" " pathogen runtime bundle/pathogen/autoload/pathogen.vim call pathogen#infect() call pathogen#helptags() " align vmap <silent> <leader>i= <esc>:AlignPush<cr>:AlignCtrl lp1P1<cr>:'<,'>Align =<cr>:AlignPop<cr> vmap <silent> <leader>i, <esc>:AlignPush<cr>:AlignCtrl lp0P1<cr>:'<,'>Align ,<cr>:AlignPop<cr> vmap <silent> <leader>i( <esc>:AlignPush<cr>:AlignCtrl lp0P0<cr>:'<,'>Align (<cr>:AlignPop<cr> " airline let g:airline_powerline_fonts=1 let g:airline_theme='gruvbox' if !exists('g:airline_symbols') let g:airline_symbols={} endif let g:airline_symbols.maxlinenr='' let g:airline_symbols.notexists='' let g:airline_symbols.whitespace='' let g:airline_section_y='' "let g:airline_section_z='' let g:airline_section_error='' let g:airline_section_warning='' "let g:airline#extensions#tabline#enabled = 1 " nerdtree let g:NERDTreeWinSize=25 let g:NERDTreeMinimalUI=1 "autocmd vimenter * NERDTree "autocmd vimenter * exe 'winc w' nmap nc :NERDTreeToggle<cr> " tagbar let g:tagbar_width=25 let g:tagbar_compact=1 nmap to :TagbarToggle<cr> " slime let g:slime_target='tmux' " neocomplcache let g:neocomplcache_enable_at_startup=1 " indent guides "let g:indent_guides_enable_on_vim_startup=0 "let g:indent_guides_start_level=1 "let g:indent_guides_guide_size=1 " ultisnips let g:UltiSnipsEditSplit='horizontal' let g:UltiSnipsSnippetsDir='~/.vim/bundle/ultisnips/UltiSnips' " python mode "let g:pymode_rope_lookup_project=0 " hybrid let g:hybrid_use_Xresources=1 " splitjoin nmap sj :SplitjoinSplit<cr> nmap sk :SplitjoinJoin<cr> " markdown autocmd BufRead *.md set ft=markdown " markdown helper "source ~/code/vim-md-helper/plugin/markdown-helper.vim " gsession "let g:local_session_filename='.session.vim' " yankring "map <leader>y :YRShow<cr> " closetag "let g:closetag_html_style=1 "source ~/.vim/scripts/closetag.vim " mail "autocmd BufRead ~/.mutt/temp/mutt* :source ~/.vim/conf/mail.vim " incsearch map / <Plug>(incsearch-forward) map ? <Plug>(incsearch-backware) map g/ <Plug>(incsearch-stay) " easy-align xmap ga <Plug>(EasyAlign) nmap ga <Plug>(EasyAlign) " rainbow_parentheses let g:rbpt_colorpairs = [ \ ['brown', 'RoyalBlue3'], \ ['Darkblue', 'SeaGreen3'], \ ['darkgray', 'DarkOrchid3'], \ ['darkgreen', 'firebrick3'], \ ['darkcyan', 'RoyalBlue3'], \ ['darkred', 'SeaGreen3'], \ ['darkmagenta', 'DarkOrchid3'], \ ['brown', 'firebrick3'], \ ['gray', 'RoyalBlue3'], \ ['black', 'SeaGreen3'], \ ['darkmagenta', 'DarkOrchid3'], \ ['Darkblue', 'firebrick3'], \ ['darkgreen', 'RoyalBlue3'], \ ['darkcyan', 'SeaGreen3'], \ ['darkred', 'DarkOrchid3'], \ ['red', 'firebrick3'], \ ] let g:rbpt_max = 16 let g:rbpt_loadcmd_toggle = 0 au VimEnter * RainbowParenthesesToggle au Syntax * RainbowParenthesesLoadRound au Syntax * RainbowParenthesesLoadSquare au Syntax * RainbowParenthesesLoadBraces " dasht " Search API docs for query you type in: nnoremap <Leader>k :Dasht<Space> " Search API docs for word under cursor: nnoremap <silent> <Leader>K :call Dasht([expand('<cWORD>'), expand('<cword>')])<Return> " Search API docs for the selected text: vnoremap <silent> <Leader>K y:<C-U>call Dasht(getreg(0))<Return> " deoplete let g:deoplete#enable_at_startup = 1 let g:deoplete#disable_auto_complete = 1 " indentlines let g:indentLine_char = '│' let g:indentLine_enabled = 1 " gruvbox let g:gruvbox_contrast_dark = 'medium' |