47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
" support my own way of using plugins in vim / bash
|
|
autocmd BufRead *vimplugins set ft=vim
|
|
|
|
" enable plugins
|
|
source ~/.vim/plugged/vim-plug/plug.vim
|
|
silent!call plug#begin('~/.vim/plugged')
|
|
" plugin manager for self updates
|
|
Plug 'junegunn/vim-plug'
|
|
|
|
" general plugins
|
|
Plug 'junegunn/vim-easy-align'
|
|
Plug 'mhinz/vim-signify'
|
|
Plug 'tpope/vim-fugitive'
|
|
Plug 'tpope/vim-rsi'
|
|
Plug 'vdrandom/vim-tru-typewriter'
|
|
Plug 'vim-scripts/directionalWindowResizer'
|
|
Plug 'lifepillar/vim-cheat40'
|
|
|
|
" IDE liek, per filetype
|
|
if v:version >= 800
|
|
Plug 'davidhalter/jedi-vim', { 'for': 'python' }
|
|
Plug 'w0rp/ale', { 'for': 'python' }
|
|
endif
|
|
|
|
" colorschemes
|
|
Plug 'lifepillar/vim-solarized8'
|
|
Plug 'lifepillar/vim-gruvbox8'
|
|
Plug 'lifepillar/vim-wwdc17-theme'
|
|
Plug 'nanotech/jellybeans.vim'
|
|
Plug 'whatyouhide/vim-gotham'
|
|
|
|
" syntax highlight plugins
|
|
Plug 'sheerun/vim-polyglot'
|
|
|
|
" only plug vimwiki within vimwiki dir and this file
|
|
if expand('%:p:h') =~ 'vimwiki' || expand('%') =~ 'vimplugins'
|
|
Plug 'vimwiki/vimwiki'
|
|
endif
|
|
call plug#end()
|
|
|
|
" signify options
|
|
let g:signify_vcs_list = [ 'git' ]
|
|
let g:signify_sign_change = '~'
|
|
|
|
" easy-align options
|
|
xmap <Leader>a <Plug>(EasyAlign)
|
|
nmap <Leader>a <Plug>(EasyAlign)
|