2020-06-26 21:23:12 +00:00
|
|
|
" Plug
|
2020-09-04 10:02:34 +00:00
|
|
|
let plug_install = 0
|
|
|
|
let autoload_plug_path = stdpath('data') . '/site/autoload/plug.vim'
|
|
|
|
if !filereadable(autoload_plug_path)
|
|
|
|
silent exe '!curl -fL --create-dirs -o ' . autoload_plug_path .
|
|
|
|
\ ' https://raw.github.com/junegunn/vim-plug/master/plug.vim'
|
|
|
|
execute 'source ' . fnameescape(autoload_plug_path)
|
|
|
|
let plug_install = 1
|
2020-06-26 21:23:12 +00:00
|
|
|
endif
|
2020-09-04 10:02:34 +00:00
|
|
|
unlet autoload_plug_path
|
2020-06-26 21:23:12 +00:00
|
|
|
|
|
|
|
call plug#begin()
|
|
|
|
|
|
|
|
" Editing
|
|
|
|
" text objects
|
2020-09-04 10:02:34 +00:00
|
|
|
Plug 'xerus2000/argtextobj.vim' " arguments in brackets as text objects
|
|
|
|
Plug 'tpope/vim-surround' " edit surroundings - cs, ds, ys
|
|
|
|
Plug 'bkad/CamelCaseMotion' " move through camel case words
|
2020-06-26 21:23:12 +00:00
|
|
|
" commands
|
|
|
|
Plug 'inkarkat/vim-ReplaceWithRegister' " gr to replace with register
|
|
|
|
Plug 'tpope/vim-commentary' " gc to comment out (gcap for paragraph)
|
|
|
|
Plug 'terryma/vim-multiple-cursors' " <C-n> new coursor+selection on match, <C-x> skip, <C-p> remove cursor & back
|
|
|
|
Plug 'junegunn/vim-easy-align' " ga to align stuff
|
|
|
|
xmap ga <Plug>(EasyAlign)
|
|
|
|
nmap ga <Plug>(EasyAlign)
|
|
|
|
" libs
|
|
|
|
Plug 'tpope/vim-repeat'
|
|
|
|
Plug 'inkarkat/vim-ingo-library'
|
|
|
|
|
|
|
|
" Ex commands
|
|
|
|
Plug 'DataWraith/auto_mkdir' " mkdir parent dirs when saving
|
|
|
|
Plug 'AndrewRadev/bufferize.vim' " Command to buffer
|
|
|
|
Plug 'tpope/vim-eunuch' " OS helpers
|
|
|
|
Plug 'tpope/vim-fugitive' " Git commands in vim
|
|
|
|
Plug 'jreybert/vimagit' " Magit for vim - git stage individual changes
|
|
|
|
Plug 'doy/vim-diff-changes' " Commands for diffing - :DiffAgainstFilesystem :DiffAgainstVCS :DiffStop
|
|
|
|
Plug 'junegunn/fzf' " File selection with :FZF
|
|
|
|
" Browse
|
2020-09-04 10:02:34 +00:00
|
|
|
Plug 'tyru/open-browser.vim' " :OpenBrowser, :OpenBrowserSearch
|
2020-06-26 21:23:12 +00:00
|
|
|
Plug 'tyru/open-browser-github.vim'
|
|
|
|
|
|
|
|
" QOL
|
2020-09-04 10:02:34 +00:00
|
|
|
Plug 'farmergreg/vim-lastplace' " Automatically jump to last edit position
|
|
|
|
Plug 'chrisbra/Recover.vim' " Add Recover options for swap files
|
2020-06-26 21:23:12 +00:00
|
|
|
Plug 'ntpeters/vim-better-whitespace' " Tools for trailing whitespace & mixed indents
|
|
|
|
|
|
|
|
" Aesthetic
|
2020-09-04 10:02:34 +00:00
|
|
|
Plug 'vim-airline/vim-airline' " Status bar on the bottom
|
|
|
|
Plug 'psliwka/vim-smoothie' " Smooth scrolling
|
|
|
|
Plug 'romainl/vim-cool' " Automatically stop highlighting search results when moving - https://stackoverflow.com/questions/657447/vim-clear-last-search-highlighting
|
|
|
|
Plug 'airblade/vim-gitgutter' " Git info on the left
|
2020-06-26 21:23:12 +00:00
|
|
|
Plug 'norcalli/nvim-colorizer.lua' " Highlights color literals
|
|
|
|
" Visual indent guides
|
|
|
|
Plug 'nathanaelkane/vim-indent-guides'
|
|
|
|
let g:indent_guides_enable_on_vim_startup = 1
|
|
|
|
|
|
|
|
" Integrations
|
2020-09-19 07:33:31 +00:00
|
|
|
Plug 'dhruvasagar/vim-table-mode'
|
|
|
|
let g:table_mode_corner='|'
|
2020-06-26 21:23:12 +00:00
|
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release' }
|
|
|
|
Plug 'udalov/kotlin-vim'
|
|
|
|
Plug 'iamcco/markdown-preview.nvim', { 'do': 'cd app & yarn install' }
|
|
|
|
Plug 'glacambre/firenvim', { 'do': { _ -> firenvim#install(0) } }
|
2020-09-04 10:02:34 +00:00
|
|
|
Plug 'mipmip/vim-scimark' " Edit markdown tables
|
|
|
|
Plug 'APZelos/blamer.nvim' " Inline git blame
|
2020-09-19 07:33:31 +00:00
|
|
|
" Plug 'xerus2000/vim-dokuwiki'
|
2020-06-26 21:23:12 +00:00
|
|
|
|
|
|
|
call plug#end()
|
|
|
|
|
2020-09-04 10:02:34 +00:00
|
|
|
" Install plugins automatically after installing plug
|
|
|
|
if plug_install
|
|
|
|
PlugInstall --sync
|
|
|
|
endif
|
|
|
|
unlet plug_install
|