Big cleanup of plugin config to make it more straightforward

Also added Goyo
This commit is contained in:
ViViDboarder 2017-01-05 17:19:19 -08:00
parent a23a9b85e4
commit 4f41d766a8
21 changed files with 97 additions and 72 deletions

View File

@ -15,118 +15,84 @@ endfunction
" Navigation {{ " Navigation {{
Plug 'file-line' Plug 'file-line'
Plug 'tpope/vim-vinegar' Plug 'tpope/vim-vinegar'
Plug 'sandeepcr529/Buffet.vim', { 'on': 'Bufferlist' } call s:smart_source_rc('plugins/Buffet')
" Buffet {{
nnoremap <silent> <F2> :Bufferlist<CR>
" }} Buffet
" }} Navigation " }} Navigation
" Git {{ " Git {{
Plug 'tpope/vim-fugitive', { 'on': ['Gblame', 'Gdiff', 'Gcommit', 'Gstatus', 'Gwrite'] }
call s:smart_source_rc('plugins/fugitive') call s:smart_source_rc('plugins/fugitive')
Plug 'airblade/vim-gitgutter', { 'on': ['GitGutterSignsToggle'] }
call s:smart_source_rc('plugins/gitgutter') call s:smart_source_rc('plugins/gitgutter')
" }} Git " }} Git
" Searching {{ " Searching {{
Plug 'ctrlpvim/ctrlp.vim'
call s:smart_source_rc('plugins/ctrlp') call s:smart_source_rc('plugins/ctrlp')
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' } call s:smart_source_rc('plugins/fzf')
Plug 'junegunn/fzf.vim' call s:smart_source_rc('plugins/incsearch')
let g:fzf_command_prefix = 'Fzf' call s:smart_source_rc('plugins/vim-grepper')
Plug 'mhinz/vim-grepper' " }} Searching
call s:smart_source_rc('plugins/grepper')
" }} Fuzzy Find
" Autocomplete {{ " Autocomplete {{
call s:smart_source_rc('plugins/omnicompletion') call s:smart_source_rc('plugins/omnicompletion')
if (has('lua') && (v:version > 703 || v:version == 703 && has('patch885'))) if (has('lua') && (v:version > 703 || v:version == 703 && has('patch885')))
Plug 'Shougo/neocomplete.vim'
call s:smart_source_rc('plugins/neocomplete') call s:smart_source_rc('plugins/neocomplete')
elseif has('nvim') && has('python3') elseif has('nvim') && has('python3')
Plug 'Shougo/deoplete.nvim'
Plug 'Shougo/neoinclude.vim'
Plug 'Shougo/neco-syntax'
Plug 'zchee/deoplete-jedi'
Plug 'zchee/deoplete-go'
call s:smart_source_rc('plugins/deoplete') call s:smart_source_rc('plugins/deoplete')
" Remember :UpdateRemotePlugins
else else
Plug 'Shougo/neocomplcache.vim'
call s:smart_source_rc('plugins/neocomplcache') call s:smart_source_rc('plugins/neocomplcache')
end end
" }} Autocomplete " }} Autocomplete
" Programming {{ " Programming {{
if has('nvim') Plug 'tpope/vim-surround'
Plug 'kassio/neoterm' call s:smart_source_rc('plugins/tagbar')
endif call s:smart_source_rc('plugins/tcomment_vim')
Plug 'majutsushi/tagbar'
" tagbar {{
nnoremap <silent> <F8> :TagbarToggle<CR>
let g:tagbar_autofocus = 1 " Autofocus tagbar
" }} tagbar
if (v:version > 703) if (v:version > 703)
Plug 'ludovicchabant/vim-gutentags' " Auto generate tags files Plug 'ludovicchabant/vim-gutentags' " Auto generate tags files
end end
Plug 'tpope/vim-surround' if has('nvim')
Plug 'tomtom/tcomment_vim' " , { 'on': ['TComment', 'TCommentBlock'] } Plug 'kassio/neoterm'
" tcomment_vim {{ else
nnoremap // :TComment<CR>
vnoremap // :TCommentBlock<CR>
" }} tcomment_vim
if !has('nvim')
" Only use if not neovim, on neovim we have Neomake " Only use if not neovim, on neovim we have Neomake
Plug 'scrooloose/syntastic'
call s:smart_source_rc('plugins/syntastic') call s:smart_source_rc('plugins/syntastic')
endif endif
" }} " }}
" GUI {{ " GUI {{
Plug 'mhinz/vim-startify' Plug 'gregsexton/MatchTag'
call s:smart_source_rc('plugins/startify')
Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes' Plug 'vim-airline/vim-airline-themes'
call s:smart_source_rc('plugins/airline')
call s:smart_source_rc('plugins/dash')
call s:smart_source_rc('plugins/startify')
" Plug 'edkolev/tmuxline.vim' " Removed because this can fail on some machines " Plug 'edkolev/tmuxline.vim' " Removed because this can fail on some machines
" let g:tmuxline_powerline_separators = 0 " let g:tmuxline_powerline_separators = 0
call s:smart_source_rc('plugins/airline')
" Highlight matching tags
Plug 'gregsexton/MatchTag'
" Integrate with Dash
Plug 'rizzatti/dash.vim'
" dash.vim {{
nmap <silent> <leader>d <Plug>DashSearch
let g:dash_map = {
\ 'apex' : 'apex',
\ 'visualforce' : 'vf',
\ }
" }} dash.vim
" }} GUI " }} GUI
" Filetypes {{ " Filetypes {{
Plug 'ViViDboarder/force-vim', { 'for': ['apex', 'visualforce'] }
Plug 'ViViDboarder/vim-forcedotcom' Plug 'ViViDboarder/vim-forcedotcom'
Plug 'avakhov/vim-yaml' Plug 'avakhov/vim-yaml'
Plug 'dag/vim-fish' Plug 'dag/vim-fish'
Plug 'dart-lang/dart-vim-plugin' Plug 'dart-lang/dart-vim-plugin'
Plug 'fatih/vim-go'
Plug 'groovy.vim' Plug 'groovy.vim'
Plug 'hsanson/vim-android' Plug 'hsanson/vim-android'
Plug 'udalov/kotlin-vim'
Plug 'pangloss/vim-javascript' Plug 'pangloss/vim-javascript'
Plug 'pdurbin/vim-tsv' Plug 'pdurbin/vim-tsv'
Plug 'tfnico/vim-gradle' Plug 'tfnico/vim-gradle'
Plug 'tmux-plugins/vim-tmux' Plug 'tmux-plugins/vim-tmux'
Plug 'fatih/vim-go' Plug 'udalov/kotlin-vim'
" vim-go {
let g:go_def_mapping_enabled = 0 let g:go_def_mapping_enabled = 0
" }
" }} " }}
" Python {{ " Python {{
call s:smart_source_rc('plugins/python') call s:smart_source_rc('plugins/python')
" }} " }}
" if (v:version > 703)
" Plug 'Yggdroot/indentLine', { 'for': ['python', 'yaml'] }
" endif
" Themes {{ " Themes {{
Plug 'altercation/vim-colors-solarized' Plug 'altercation/vim-colors-solarized'
Plug 'candy.vim' Plug 'candy.vim'
@ -139,29 +105,22 @@ Plug 'therubymug/vim-pyte'
Plug 'vividchalk.vim' Plug 'vividchalk.vim'
Plug 'wombat256.vim' Plug 'wombat256.vim'
" }} " }}
call s:smart_source_rc('plugins/goyo-limelight') " Distraction free editing
" System {{ " System {{
" neomake / vim-dispatch {{ " neomake / vim-dispatch {{
if has('nvim') if has('nvim')
Plug 'benekastah/neomake' call s:smart_source_rc('plugins/neomake')
nnoremap <F5> :Neomake<CR>
let g:neomake_python_enabled_makers = ['flake8']
command! TagsUpdate NeomakeSh ctags -R .
else else
Plug 'tpope/vim-dispatch' call s:smart_source_rc('plugins/vim-dispatch')
nnoremap <F5> :Make<CR>
command! TagsUpdate Dispatch ctags -R .
endif endif
" }} " }}
"
Plug 'Shougo/vimproc.vim', { 'do': 'make' } Plug 'Shougo/vimproc.vim', { 'do': 'make' }
Plug 'tpope/vim-endwise' Plug 'tpope/vim-endwise'
Plug 'tpope/vim-eunuch' Plug 'tpope/vim-eunuch'
Plug 'tpope/vim-repeat' Plug 'tpope/vim-repeat'
" emacs bindinds in insert Plug 'tpope/vim-rsi' " emacs bindinds in insert
Plug 'tpope/vim-rsi' call s:smart_source_rc('plugins/vim-togglelist')
Plug 'milkypostman/vim-togglelist'
" vim-togglelist {{
nnoremap <silent> <F6> :call ToggleQuickfixList()<CR>
nnoremap <silent> <F7> :call ToggleLocationList()<CR>
" }} vim-togglelist
" }} " }}

View File

@ -0,0 +1,2 @@
Plug 'sandeepcr529/Buffet.vim', { 'on': 'Bufferlist' }
nnoremap <silent> <F2> :Bufferlist<CR>

View File

@ -1,3 +1,4 @@
Plug 'ctrlpvim/ctrlp.vim'
" Configuration for ctrlp.vim " Configuration for ctrlp.vim
" Ensure max height isn't too large. (for performance) " Ensure max height isn't too large. (for performance)

View File

@ -0,0 +1,8 @@
" Install plugin
Plug 'rizzatti/dash.vim'
" Set config"
nmap <silent> <leader>d <Plug>DashSearch
let g:dash_map = {
\ 'apex' : 'apex',
\ 'visualforce' : 'vf',
\ }

View File

@ -1,3 +1,10 @@
" Install plugins
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
Plug 'Shougo/neoinclude.vim'
Plug 'Shougo/neco-syntax'
Plug 'zchee/deoplete-jedi'
Plug 'zchee/deoplete-go'
inoremap <silent><expr> <C-Space> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete() inoremap <silent><expr> <C-Space> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete()
inoremap <silent><expr> <nul> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete() inoremap <silent><expr> <nul> pumvisible() ? "\<C-n>" : deoplete#mappings#manual_complete()

View File

@ -1,3 +1,4 @@
Plug 'tpope/vim-fugitive' ", { 'on': ['Gblame', 'Gdiff', 'Gcommit', 'Gstatus', 'Gwrite'] }
" Mappings " Mappings
nnoremap <leader>gb :Gblame<CR> nnoremap <leader>gb :Gblame<CR>
nnoremap <leader>gc :Gcommit<CR> nnoremap <leader>gc :Gcommit<CR>

View File

@ -0,0 +1,3 @@
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': 'yes \| ./install' }
Plug 'junegunn/fzf.vim'
let g:fzf_command_prefix = 'Fzf'

View File

@ -1,3 +1,4 @@
Plug 'airblade/vim-gitgutter', { 'on': ['GitGutterSignsToggle'] }
" Settings to keep gitgutter fast " Settings to keep gitgutter fast
let g:gitgutter_enabled = 1 let g:gitgutter_enabled = 1
" Will toggle signs when I want them " Will toggle signs when I want them

View File

@ -0,0 +1,11 @@
" Both these plugins work well together for distraction free editing
Plug 'junegunn/goyo.vim', { 'on': 'Goyo' }
Plug 'junegunn/limelight.vim', { 'on': 'Limelight' }
function! s:goyo_enter()
Limelight
endfunction
function! s:goyo_leave()
Limelight!
endfunction
autocmd! User GoyoEnter nested call <SID>goyo_enter()
autocmd! User GoyoLeave nested call <SID>goyo_leave()

View File

@ -0,0 +1,4 @@
Plug 'haya14busa/incsearch.vim'
map / <Plug>(incsearch-forward)
map ? <Plug>(incsearch-backward)
map g/ <Plug>(incsearch-stay)

View File

@ -1,3 +1,7 @@
" Install plugins
Plug 'Shougo/neocomplcache.vim'
" Set configuration
let g:neocomplcache_enable_at_startup = 1 let g:neocomplcache_enable_at_startup = 1
let g:neocomplcache_enable_smart_case = 1 let g:neocomplcache_enable_smart_case = 1
let g:neocomplcache_max_list = 10 let g:neocomplcache_max_list = 10

View File

@ -1,3 +1,7 @@
" Install plugins
Plug 'Shougo/neocomplete.vim'
" Configure plugins
let g:acp_enableAtStartup = 0 let g:acp_enableAtStartup = 0
let g:neocomplete#enable_at_startup = 1 let g:neocomplete#enable_at_startup = 1
let g:neocomplete#enable_smart_case = 1 let g:neocomplete#enable_smart_case = 1

View File

@ -0,0 +1,4 @@
Plug 'benekastah/neomake'
nnoremap <F5> :Neomake<CR>
let g:neomake_python_enabled_makers = ['flake8']
command! TagsUpdate NeomakeSh ctags -R .

View File

@ -12,7 +12,7 @@ let g:jedi#auto_vim_configuration = 0
let g:jedi#completions_enabled = 0 let g:jedi#completions_enabled = 0
let g:jedi#smart_auto_mappings = 0 let g:jedi#smart_auto_mappings = 0
" }} jedi-vim " }} jedi-vim
Plug 'klen/python-mode' Plug 'klen/python-mode', { 'for': 'python' }
" python-mode {{ " python-mode {{
" A lot is disabled, what I'm using: " A lot is disabled, what I'm using:
" breakpoints, virtualenv, motions, syntax, " breakpoints, virtualenv, motions, syntax,

View File

@ -1,3 +1,4 @@
Plug 'mhinz/vim-startify'
let g:startify_list_order = [ let g:startify_list_order = [
\ [' My Bookmarks'], 'bookmarks', \ [' My Bookmarks'], 'bookmarks',
\ [' Most recently used files in the current directory'], 'dir', \ [' Most recently used files in the current directory'], 'dir',

View File

@ -1,3 +1,4 @@
Plug 'scrooloose/syntastic'
if exists('loaded_syntastic') if exists('loaded_syntastic')
let g:syntastic_html_tidy_ignore_errors = [ let g:syntastic_html_tidy_ignore_errors = [
\ 'proprietary attribute "ng-show"', \ 'proprietary attribute "ng-show"',

View File

@ -0,0 +1,4 @@
Plug 'majutsushi/tagbar'
nnoremap <silent> <F8> :TagbarToggle<CR>
let g:tagbar_autofocus = 1 " Autofocus tagbar

View File

@ -0,0 +1,3 @@
Plug 'tomtom/tcomment_vim' " , { 'on': ['TComment', 'TCommentBlock'] }
nnoremap // :TComment<CR>
vnoremap // :TCommentBlock<CR>

View File

@ -0,0 +1,3 @@
Plug 'tpope/vim-dispatch'
nnoremap <F5> :Make<CR>
command! TagsUpdate Dispatch ctags -R .

View File

@ -1,3 +1,4 @@
Plug 'mhinz/vim-grepper'
" Grepper settings and shortcuts " Grepper settings and shortcuts
let g:grepper = { let g:grepper = {
\ 'dispatch': 1, \ 'dispatch': 1,

View File

@ -0,0 +1,3 @@
Plug 'milkypostman/vim-togglelist'
nnoremap <silent> <F6> :call ToggleQuickfixList()<CR>
nnoremap <silent> <F7> :call ToggleLocationList()<CR>