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 {{
|
2017-05-31 00:01:51 +00:00
|
|
|
Plug 'vim-scripts/file-line'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'tpope/vim-vinegar'
|
2017-01-06 01:19:19 +00:00
|
|
|
call s:smart_source_rc('plugins/Buffet')
|
2015-08-13 22:28:46 +00:00
|
|
|
" }} Navigation
|
|
|
|
|
|
|
|
" Git {{
|
2016-11-15 17:25:41 +00:00
|
|
|
call s:smart_source_rc('plugins/fugitive')
|
|
|
|
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-20 21:54:46 +00:00
|
|
|
" Searching {{
|
2015-04-28 19:01:33 +00:00
|
|
|
call s:smart_source_rc('plugins/ctrlp')
|
2017-01-06 01:19:19 +00:00
|
|
|
call s:smart_source_rc('plugins/fzf')
|
2017-08-23 18:34:33 +00:00
|
|
|
" call s:smart_source_rc('plugins/incsearch')
|
2017-01-06 01:19:19 +00:00
|
|
|
call s:smart_source_rc('plugins/vim-grepper')
|
|
|
|
" }} Searching
|
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-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')
|
|
|
|
call s:smart_source_rc('plugins/deoplete')
|
2015-03-26 17:09:26 +00:00
|
|
|
else
|
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 {{
|
2017-01-06 01:19:19 +00:00
|
|
|
Plug 'tpope/vim-surround'
|
|
|
|
call s:smart_source_rc('plugins/tagbar')
|
|
|
|
call s:smart_source_rc('plugins/tcomment_vim')
|
2016-05-20 23:17:33 +00:00
|
|
|
if (v:version > 703)
|
|
|
|
Plug 'ludovicchabant/vim-gutentags' " Auto generate tags files
|
|
|
|
end
|
2017-01-06 01:19:19 +00:00
|
|
|
if has('nvim')
|
|
|
|
Plug 'kassio/neoterm'
|
2017-10-25 17:45:15 +00:00
|
|
|
endif
|
|
|
|
if (has('nvim') || v:version >= 800)
|
|
|
|
call s:smart_source_rc('plugins/neomake')
|
2017-01-06 01:19:19 +00:00
|
|
|
else
|
2017-10-25 17:45:15 +00:00
|
|
|
call s:smart_source_rc('plugins/vim-dispatch')
|
2015-04-28 19:01:33 +00:00
|
|
|
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 {{
|
2017-01-06 01:19:19 +00:00
|
|
|
Plug 'gregsexton/MatchTag'
|
2016-03-24 17:41:49 +00:00
|
|
|
Plug 'vim-airline/vim-airline'
|
|
|
|
Plug 'vim-airline/vim-airline-themes'
|
2017-01-06 01:19:19 +00:00
|
|
|
call s:smart_source_rc('plugins/airline')
|
|
|
|
call s:smart_source_rc('plugins/dash')
|
|
|
|
call s:smart_source_rc('plugins/startify')
|
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
|
2015-08-13 22:28:46 +00:00
|
|
|
|
|
|
|
" }} GUI
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" Filetypes {{
|
2017-01-06 01:19:19 +00:00
|
|
|
Plug 'ViViDboarder/force-vim', { 'for': ['apex', 'visualforce'] }
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'ViViDboarder/vim-forcedotcom'
|
|
|
|
Plug 'avakhov/vim-yaml'
|
2017-01-23 20:21:40 +00:00
|
|
|
Plug 'cespare/vim-toml'
|
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'
|
2017-05-30 21:10:55 +00:00
|
|
|
Plug 'fatih/vim-go', { 'do': ':GoInstallBinaries' }
|
2017-05-31 00:01:51 +00:00
|
|
|
Plug 'vim-scripts/groovy.vim'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'hsanson/vim-android'
|
|
|
|
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'
|
2017-01-06 01:19:19 +00:00
|
|
|
Plug 'udalov/kotlin-vim'
|
2016-11-15 17:25:41 +00:00
|
|
|
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
|
|
|
" }}
|
|
|
|
|
2017-01-06 01:19:19 +00:00
|
|
|
" if (v:version > 703)
|
|
|
|
" Plug 'Yggdroot/indentLine', { 'for': ['python', 'yaml'] }
|
|
|
|
" endif
|
|
|
|
|
2015-03-26 17:09:26 +00:00
|
|
|
" Themes {{
|
|
|
|
Plug 'altercation/vim-colors-solarized'
|
2017-05-31 00:01:51 +00:00
|
|
|
Plug 'vim-scripts/candy.vim'
|
|
|
|
Plug 'vim-scripts/eclipse.vim'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'morhetz/gruvbox'
|
|
|
|
Plug 'nanotech/jellybeans.vim'
|
2017-05-31 00:01:51 +00:00
|
|
|
Plug 'vim-scripts/nuvola.vim'
|
|
|
|
Plug 'vim-scripts/summerfruit256.vim'
|
2015-03-26 17:09:26 +00:00
|
|
|
Plug 'therubymug/vim-pyte'
|
2017-05-31 00:01:51 +00:00
|
|
|
Plug 'vim-scripts/vividchalk.vim'
|
|
|
|
Plug 'vim-scripts/wombat256.vim'
|
2015-03-26 17:09:26 +00:00
|
|
|
" }}
|
2017-01-06 01:19:19 +00:00
|
|
|
call s:smart_source_rc('plugins/goyo-limelight') " Distraction free editing
|
2015-03-26 17:09:26 +00:00
|
|
|
|
|
|
|
" System {{
|
2017-01-06 01:19:19 +00:00
|
|
|
|
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'
|
2017-01-06 01:19:19 +00:00
|
|
|
Plug 'tpope/vim-rsi' " emacs bindinds in insert
|
|
|
|
call s:smart_source_rc('plugins/vim-togglelist')
|
2015-03-26 17:09:26 +00:00
|
|
|
" }}
|