2015-08-13 22:28:46 +00:00
|
|
|
" Functions {{
|
2015-03-27 00:54:29 +00:00
|
|
|
function! s:smart_source_rc(name)
|
|
|
|
call s:source_rc(a:name . '.rc.vim')
|
|
|
|
call s:source_rc(a:name . '.local.rc.vim')
|
|
|
|
endfunction
|
|
|
|
|
|
|
|
function! s:source_rc(path)
|
|
|
|
let l:f_path = fnameescape(expand('~/.vim/rc/' . a:path))
|
|
|
|
if filereadable(l:f_path)
|
|
|
|
execute 'source' . l:f_path
|
|
|
|
endif
|
|
|
|
endfunction
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} Functions
|
2015-03-27 00:54:29 +00:00
|
|
|
|
2015-03-26 17:09:26 +00:00
|
|
|
" Navigation {{
|
|
|
|
Plug 'file-line'
|
|
|
|
Plug 'tpope/vim-vinegar'
|
|
|
|
Plug 'sandeepcr529/Buffet.vim', { 'on': 'Bufferlist' }
|
2015-08-13 22:28:46 +00:00
|
|
|
" Buffet {{
|
2016-11-15 17:25:41 +00:00
|
|
|
nnoremap <silent> <F2> :Bufferlist<CR>
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} Buffet
|
|
|
|
" }} Navigation
|
|
|
|
|
|
|
|
" Git {{
|
2016-06-07 01:03:45 +00:00
|
|
|
Plug 'tpope/vim-fugitive', { 'on': ['Gblame', 'Gdiff', 'Gcommit', 'Gstatus', 'Gwrite'] }
|
2016-11-15 17:25:41 +00:00
|
|
|
call s:smart_source_rc('plugins/fugitive')
|
2016-06-07 01:03:45 +00:00
|
|
|
Plug 'airblade/vim-gitgutter', { 'on': ['GitGutterSignsToggle'] }
|
2016-11-15 17:25:41 +00:00
|
|
|
call s:smart_source_rc('plugins/gitgutter')
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} Git
|
2015-03-27 00:45:03 +00:00
|
|
|
|
2015-08-13 22:28:46 +00:00
|
|
|
|
2015-08-20 21:54:46 +00:00
|
|
|
" Searching {{
|
2015-03-27 00:45:03 +00:00
|
|
|
Plug 'ctrlpvim/ctrlp.vim'
|
2015-04-28 19:01:33 +00:00
|
|
|
call s:smart_source_rc('plugins/ctrlp')
|
2015-04-28 23:50:32 +00:00
|
|
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' }
|
2016-11-15 17:16:03 +00:00
|
|
|
Plug 'junegunn/fzf.vim'
|
|
|
|
let g:fzf_command_prefix = 'Fzf'
|
2015-08-20 21:54:46 +00:00
|
|
|
Plug 'mhinz/vim-grepper'
|
2016-11-15 17:25:41 +00:00
|
|
|
call s:smart_source_rc('plugins/grepper')
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} Fuzzy Find
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" Autocomplete {{
|
2015-09-29 16:27:05 +00:00
|
|
|
call s:smart_source_rc('plugins/omnicompletion')
|
2015-10-26 17:19:24 +00:00
|
|
|
if (has('lua') && (v:version > 703 || v:version == 703 && has('patch885')))
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'Shougo/neocomplete.vim'
|
2015-06-18 16:27:57 +00:00
|
|
|
call s:smart_source_rc('plugins/neocomplete')
|
2015-09-29 16:27:05 +00:00
|
|
|
elseif has('nvim') && has('python3')
|
|
|
|
Plug 'Shougo/deoplete.nvim'
|
|
|
|
Plug 'Shougo/neoinclude.vim'
|
|
|
|
Plug 'Shougo/neco-syntax'
|
2016-03-24 17:41:02 +00:00
|
|
|
Plug 'zchee/deoplete-jedi'
|
|
|
|
Plug 'zchee/deoplete-go'
|
2015-09-29 16:27:05 +00:00
|
|
|
call s:smart_source_rc('plugins/deoplete')
|
|
|
|
" Remember :UpdateRemotePlugins
|
2015-03-26 17:09:26 +00:00
|
|
|
else
|
|
|
|
Plug 'Shougo/neocomplcache.vim'
|
2015-06-18 16:27:57 +00:00
|
|
|
call s:smart_source_rc('plugins/neocomplcache')
|
2015-03-26 17:09:26 +00:00
|
|
|
end
|
2016-11-15 17:25:41 +00:00
|
|
|
" }} Autocomplete
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" Programming {{
|
2015-10-28 17:52:03 +00:00
|
|
|
if has('nvim')
|
|
|
|
Plug 'kassio/neoterm'
|
|
|
|
endif
|
2015-03-27 00:45:03 +00:00
|
|
|
Plug 'majutsushi/tagbar'
|
2015-08-13 22:28:46 +00:00
|
|
|
" tagbar {{
|
|
|
|
nnoremap <silent> <F8> :TagbarToggle<CR>
|
|
|
|
let g:tagbar_autofocus = 1 " Autofocus tagbar
|
|
|
|
" }} tagbar
|
2016-05-20 23:17:33 +00:00
|
|
|
if (v:version > 703)
|
|
|
|
Plug 'ludovicchabant/vim-gutentags' " Auto generate tags files
|
|
|
|
end
|
2015-08-13 22:28:46 +00:00
|
|
|
Plug 'tpope/vim-surround'
|
|
|
|
Plug 'tomtom/tcomment_vim' " , { 'on': ['TComment', 'TCommentBlock'] }
|
|
|
|
" tcomment_vim {{
|
|
|
|
nnoremap // :TComment<CR>
|
|
|
|
vnoremap // :TCommentBlock<CR>
|
|
|
|
" }} tcomment_vim
|
2015-03-27 00:45:03 +00:00
|
|
|
if !has('nvim')
|
|
|
|
" Only use if not neovim, on neovim we have Neomake
|
2015-04-28 19:01:33 +00:00
|
|
|
Plug 'scrooloose/syntastic'
|
|
|
|
call s:smart_source_rc('plugins/syntastic')
|
2015-03-27 00:45:03 +00:00
|
|
|
endif
|
|
|
|
" }}
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" GUI {{
|
2015-08-14 05:43:20 +00:00
|
|
|
Plug 'mhinz/vim-startify'
|
|
|
|
call s:smart_source_rc('plugins/startify')
|
2016-03-24 17:41:49 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'vim-airline/vim-airline-themes'
|
2016-11-15 17:16:03 +00:00
|
|
|
" Plug 'edkolev/tmuxline.vim' " Removed because this can fail on some machines
|
|
|
|
" let g:tmuxline_powerline_separators = 0
|
2016-06-07 01:03:45 +00:00
|
|
|
call s:smart_source_rc('plugins/airline')
|
2015-08-13 22:28:46 +00:00
|
|
|
" Highlight matching tags
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'gregsexton/MatchTag'
|
2015-08-13 22:28:46 +00:00
|
|
|
" Integrate with Dash
|
2015-06-16 01:02:23 +00:00
|
|
|
Plug 'rizzatti/dash.vim'
|
2015-08-13 22:28:46 +00:00
|
|
|
" dash.vim {{
|
2015-06-16 01:02:23 +00:00
|
|
|
nmap <silent> <leader>d <Plug>DashSearch
|
|
|
|
let g:dash_map = {
|
|
|
|
\ 'apex' : 'apex',
|
|
|
|
\ 'visualforce' : 'vf',
|
|
|
|
\ }
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} dash.vim
|
|
|
|
|
|
|
|
" }} GUI
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" Filetypes {{
|
|
|
|
Plug 'ViViDboarder/vim-forcedotcom'
|
|
|
|
Plug 'avakhov/vim-yaml'
|
2015-06-16 01:01:57 +00:00
|
|
|
Plug 'dag/vim-fish'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'dart-lang/dart-vim-plugin'
|
|
|
|
Plug 'groovy.vim'
|
|
|
|
Plug 'hsanson/vim-android'
|
2016-05-03 18:42:44 +00:00
|
|
|
Plug 'udalov/kotlin-vim'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'pangloss/vim-javascript'
|
|
|
|
Plug 'pdurbin/vim-tsv'
|
|
|
|
Plug 'tfnico/vim-gradle'
|
2015-03-31 20:48:21 +00:00
|
|
|
Plug 'tmux-plugins/vim-tmux'
|
2016-11-15 17:25:41 +00:00
|
|
|
Plug 'fatih/vim-go'
|
|
|
|
" vim-go {
|
|
|
|
let g:go_def_mapping_enabled = 0
|
|
|
|
" }
|
2015-03-27 00:45:03 +00:00
|
|
|
" }}
|
|
|
|
|
2015-03-26 17:09:26 +00:00
|
|
|
" Python {{
|
2016-11-15 17:25:41 +00:00
|
|
|
call s:smart_source_rc('plugins/python')
|
2015-03-26 17:09:26 +00:00
|
|
|
" }}
|
|
|
|
|
|
|
|
" Themes {{
|
|
|
|
Plug 'altercation/vim-colors-solarized'
|
|
|
|
Plug 'candy.vim'
|
|
|
|
Plug 'eclipse.vim'
|
|
|
|
Plug 'morhetz/gruvbox'
|
|
|
|
Plug 'nanotech/jellybeans.vim'
|
|
|
|
Plug 'nuvola.vim'
|
|
|
|
Plug 'summerfruit256.vim'
|
|
|
|
Plug 'therubymug/vim-pyte'
|
|
|
|
Plug 'vividchalk.vim'
|
|
|
|
Plug 'wombat256.vim'
|
|
|
|
" }}
|
|
|
|
|
|
|
|
" System {{
|
2015-03-27 00:45:03 +00:00
|
|
|
" neomake / vim-dispatch {{
|
|
|
|
if has('nvim')
|
|
|
|
Plug 'benekastah/neomake'
|
2015-08-14 05:43:20 +00:00
|
|
|
nnoremap <F5> :Neomake<CR>
|
|
|
|
let g:neomake_python_enabled_makers = ['flake8']
|
2016-06-07 01:03:45 +00:00
|
|
|
command! TagsUpdate NeomakeSh ctags -R .
|
2015-03-27 00:45:03 +00:00
|
|
|
else
|
|
|
|
Plug 'tpope/vim-dispatch'
|
2015-04-28 19:01:33 +00:00
|
|
|
nnoremap <F5> :Make<CR>
|
|
|
|
command! TagsUpdate Dispatch ctags -R .
|
2015-03-27 00:45:03 +00:00
|
|
|
endif
|
|
|
|
" }}
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'Shougo/vimproc.vim', { 'do': 'make' }
|
2015-06-16 01:01:57 +00:00
|
|
|
Plug 'tpope/vim-endwise'
|
2016-06-07 01:03:45 +00:00
|
|
|
Plug 'tpope/vim-eunuch'
|
|
|
|
Plug 'tpope/vim-repeat'
|
2015-03-26 17:09:26 +00:00
|
|
|
" emacs bindinds in insert
|
|
|
|
Plug 'tpope/vim-rsi'
|
2015-05-21 20:51:59 +00:00
|
|
|
Plug 'milkypostman/vim-togglelist'
|
2015-08-14 05:43:20 +00:00
|
|
|
" vim-togglelist {{
|
|
|
|
nnoremap <silent> <F6> :call ToggleQuickfixList()<CR>
|
|
|
|
nnoremap <silent> <F7> :call ToggleLocationList()<CR>
|
|
|
|
" }} vim-togglelist
|
2015-03-26 17:09:26 +00:00
|
|
|
" }}
|