-
Notifications
You must be signed in to change notification settings - Fork 1
/
plugins.vim
executable file
·140 lines (136 loc) · 4.86 KB
/
plugins.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
" Vim-plug
" Make sure you use single quotes.
" You can conditionally activate plugins but PlugClean will remove plugins that fail, which can be a prob for shared configs (eg., gvim & terminal vim).
" Workaround example:
" Plug 'airblade/vim-gitgutter', has('signs') ? {} : { 'on': [] }
" Workaround example for Gist as plugin:
" Plug 'https://gist.github.com/952560a43601cd9898f1.git',
" \ { 'as': 'xxx', 'do': 'mkdir -p plugin; cp -f *.vim plugin/' }
" If --noplugin flag used, exit
if (!&loadplugins)
finish
endif
" Auto-create autoload directory
if !isdirectory($VIMDIR.'/autoload')
call mkdir($VIMDIR.'/autoload', 'p')
endif
" If plug.vim not in autoload directory...
if empty(glob($VIMDIR.'/autoload/plug.vim'))
function! s:plugWarnSetup()
echohl WarningMsg
if (! executable('curl'))
" Warn of missing curl and notify about :PlugDownload
echon 'Curl not installed. Install it, then run :PlugDownload'
echohl None
else
" Warn of missing vim-plug and notify about :PlugDownload
echon 'Vim-plug is not installed. Run :PlugDownload to install it'
endif
echohl None
" Create :PlugDownload
command! -nargs=0 -bar PlugDownload
\ call s:plugCurl() <bar> redraw! <bar>
\ PlugInstall --sync
endfunction
function! s:plugCurl()
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim'
if empty(glob(data_dir . '/autoload/plug.vim'))
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
endfunction
augroup PlugDownload
autocmd!
" Warn about vim-plug when not installed
autocmd VimEnter * call s:plugWarnSetup()
augroup end
" Exit if vim-plug is not installed
finish
endif
call plug#begin($VIMDIR.'/bundle')
if exists(':PlugInstall')
Plug 'junegunn/vim-plug'
if has('unix')
Plug 'tpope/vim-eunuch'
endif
Plug 'editorconfig/editorconfig-vim'
Plug 'chriskempson/base16-vim'
"Plug 'srcery-colors/srcery-vim'
Plug 'tpope/vim-sleuth'
Plug 'tpope/vim-sensible'
Plug 'tpope/vim-characterize'
Plug 'simnalamburt/vim-mundo'
Plug 'vim-airline/vim-airline'
"Plug 'vim-airline/vim-airline-themes'
Plug 'nanotee/zoxide.vim'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'wookayin/fzf-ripgrep.vim'
Plug 'godlygeek/tabular'
Plug 'tpope/vim-speeddating'
Plug 'tpope/vim-repeat'
Plug 'tommcdo/vim-lion'
Plug 'unblevable/quick-scope'
Plug 'junegunn/vim-peekaboo'
" Highlight when pressing these keys:
" Off for quicker vim-sneaking.
"let g:qs_highlight_on_keys = ['f', 'F', 't', 'T', 's', 'S']
Plug 'justinmk/vim-sneak', v:version >= 720 ? {} : { 'on': [] }
Plug 'wellle/targets.vim'
Plug 'tpope/vim-surround'
Plug 'dbmrq/vim-ditto'
"Plug 'mbbill/undotree'
" Load on first use.
Plug 'tpope/vim-vinegar'
Plug 'itspriddle/vim-shellcheck'
"Plug 'preservim/nerdtree'
Plug 'will133/vim-dirdiff'
Plug 'habamax/vim-asciidoctor'
Plug 'vimwiki/vimwiki'
Plug 'plasticboy/vim-markdown'
"Plug 'iamcco/markdown-preview.nvim', { 'do': ':call mkdp#util#install()', 'for': 'markdown', 'on': 'MarkdownPreview' }
" TODO: Test, FIXME.
" if v:version >= 800 || has('nvim')
" if !has('nvim')
" Plug 'roxma/vim-hug-neovim-rpc', { 'do': 'python3 -m pip install --user pynvim' }
" Plug 'dunstontc/projectile.nvim', {'depends': 'Shougo/denite.nvim', 'depends': 'roxma/nvim-yarp'}
" else
" Plug 'dunstontc/projectile.nvim', {'depends': 'Shougo/denite.nvim'}
" endif
" else
"Plug 'vim-ctrlspace/vim-ctrlspace'
" endif
"Plug 'mattn/gist-vim', {'depends': 'mattn/webapi-vim'}
"Git plugins>
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rhubarb'
Plug 'rbong/vim-flog'
Plug 'mhinz/vim-signify', has('signs') ? {} : { 'on': [] }
"Plug 'airblade/vim-gitgutter', has('signs') ? {} : { 'on': [] }
"<Git plugins
"Coding plugins>
Plug 'romainl/vim-devdocs'
Plug 'tpope/vim-commentary'
Plug 'sheerun/vim-polyglot'
Plug 'ludovicchabant/vim-gutentags'
Plug 'tpope/vim-dispatch'
Plug 'janko/vim-test'
" TODO: Consider removing syntastic & ale for native 'au's.
Plug 'vim-syntastic/syntastic'
Plug 'w0rp/ale'
"Plug 'terryma/vim-multiple-cursors'
"<Coding plugins
"Python plugins>
Plug 'davidhalter/jedi-vim'
Plug 'jmcantrell/vim-virtualenv'
if v:version >= 730
" TODO: Test this. Clobbers lots of shortcuts.
"Plug 'python-mode/python-mode', { 'branch': 'develop' }
endif
"<Python plugins
" Haxe Plugin
"Plug 'jdonaldson/vaxe'
" Always load vim-devicons last.
Plug 'ryanoasis/vim-devicons'
call plug#end() " Does 'filetype plugin indent on' and 'syntax enable'.
endif