-
Notifications
You must be signed in to change notification settings - Fork 0
/
vundle.vim
237 lines (182 loc) · 5.56 KB
/
vundle.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
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
set nocompatible " be iMproved
filetype off " required!
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')
" let Vundle manage Vundle, required
Bundle 'gmarik/Vundle.vim'
" My Bundles here:
"
" original repos on github
" Bundle 'tpope/vim-fugitive'
" Bundle 'Lokaltog/vim-easymotion'
" Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
" Bundle 'tpope/vim-rails.git'
" NERDTree
Bundle 'scrooloose/nerdtree.git'
map <silent> <Leader>v :NERDTree<CR>
let NERDTreeIgnore=['\.pyc', '\~$', '\.swo$', '\.swp$', '\.hg', '\.svn', '\.bzr', '^\.$', '^\.\.$']
let NERDTreeQuitOnOpen=1
let NERDTreeShowHidden=1
let NERDTreeChDirMode=0
" 注释
Bundle 'tomtom/tcomment_vim'
" Bundle 'kana/vim-scratch'
" map <silent> <Leader>so :ScratchOpen<CR>
Bundle 'duff/vim-scratch'
map <silent> <Leader>so :Scratch<CR>
" 快速移动
Bundle 'Lokaltog/vim-easymotion'
" 对齐
Bundle 'godlygeek/tabular'
" snipmate's dependencies
Bundle "MarcWeber/vim-addon-mw-utils"
Bundle "tomtom/tlib_vim"
" from https://github.com/spf13/spf13-vim/blob/3.0/.vimrc
Bundle 'garbas/vim-snipmate'
" Source support_function.vim to support snipmate-snippets.
if filereadable(expand("~/.vim/bundle/vim-snippets/helpers/support_functions.vim"))
source ~/.vim/bundle/vim-snippets/helpers/support_functions.vim
endif
" 补全
Bundle 'Shougo/neocomplcache'
" let g:neocomplcache_enable_at_startup = 1
" Bundle 'SirVer/ultisnips'
" Bundle 'JazzCore/neocomplcache-ultisnips'
Bundle '[email protected]:myhere/vim-snippets.git'
" let g:UltiSnipsSnippetDirectories=['my-UltiSnips']
" let g:UltiSnipsEditSplit = 'vertical'
" let g:UltiSnipsJumpForwardTrigger = '<tab>'
" let g:UltiSnipsJumpBackwardTrigger = '<s-tab>'
" ctrlp buffer|mru
" fuzzy file|buffer|mru finder
Bundle 'kien/ctrlp.vim'
let g:ctrlp_cmd = 'CtrlPBuffer'
let g:ctrlp_by_filename = 0
let g:ctrlp_reuse_window = 'netrw\|help\|quickfix'
let g:ctrlp_lazy_update = 1
let g:ctrlp_max_files = 1000
let g:ctrlp_max_depth = 10
let g:ctrlp_root_markers = ['vimwiki', '.git', '.hg', '.svn', '.bzr','_darcs']
let g:ctrlp_custom_ignore = {
\ 'dir': '\.git$\|\.hg$\|\.svn$\|node_modules$\|build$',
\ 'file': '\.exe$\|\.so$\|\.dll$\|\.pyc$' }
" windows 下 ack 安装依赖 https://github.com/myhere/bin-in-path_windows/blob/master/ack.bat
if executable('ack')
Bundle 'mileszs/ack.vim'
endif
" zencoding
Bundle "mattn/emmet-vim"
let g:user_emmet_settings = {
\ 'lang': "zh-CN",
\ 'timezone': ' GMT+0800',
\ 'javascript': {
\ 'snippets': {
\ 'cc':
\ "/**\n"
\ ." * @author Lin Zhang <[email protected]>\n"
\ ." * @datetime ${datetime}\n"
\ ." */"
\ }
\ },
\ 'css': {
\ 'extends': 'js'
\ },
\ 'php': {
\ 'snippets': {
\ 'cc':
\ "<?php\n"
\ ."/**\n"
\ ." * @author Lin Zhang <[email protected]>\n"
\ ." * @datetime ${datetime}\n"
\ ." */"
\ }
\ }
\}
" fuzzyFinder 打开文件
Bundle 'L9'
Bundle 'FuzzyFinder'
" :h fuf-vimrc-example
nnoremap <silent> <Leader>f :FufFileWithCurrentBufferDir<CR>
nnoremap <silent> <Leader>b :FufBuffer<CR>
Bundle 'tpope/vim-surround'
" 重命名
Bundle 'renamer.vim'
" 搜索补全
" Bundle 'SearchComplete'
" bufexplorer.zip
Bundle 'bufexplorer.zip'
let g:bufExplorerSplitRight=0
Bundle 'taglist.vim'
" 只显示当前文件
let Tlist_Show_One_File = 1
nnoremap <silent> <Leader>to :TlistOpen<CR>
nnoremap <silent> <Leader>tc :TlistClose<CR>
" vimwiki
Bundle 'vimwiki'
let wiki_1 = {}
let wiki_1.path = 'D:/work/vimwiki/wiki/'
let wiki_1.path_html = 'D:/work/vimwiki/wiki_html/'
let wiki_1.template_path = 'D:/work/vimwiki/templates/'
let wiki_1.template_default = 'default'
let wiki_1.template_ext = '.tmpl'
let wiki_1.auto_export = 1
let wiki_1.css_name = ''
let g:vimwiki_list = [wiki_1]
" jsl
Bundle 'compilerjsl.vim'
let g:jsl_config = '~/.vim/conf/jsl.conf'
" favEx
" Bundle 'FavEx'
" jsbeautify, i use ':r!uglifyjs % -b' to do it
" Bundle 'jsbeautify'
" html文件 %
Bundle 'matchit.zip'
" 版本控制 svn, git, ...
" Bundle 'vcscommand.vim'
" git 版本控制
Bundle 'tpope/vim-fugitive'
" css3 相关
Bundle 'css3-syntax-plus'
" less
Bundle 'groenewege/vim-less'
" let g:cssColorVimDoNotMessMyUpdatetime = 1
Bundle 'skammer/vim-css-color'
" json syntax highlight
Bundle 'vim-json-bundle'
au! BufRead,BufNewFile *.json set filetype=json
" jinja syntax
Bundle 'mitsuhiko/vim-jinja'
Bundle 'Gundo'
Bundle 'spf13/vim-autoclose'
Bundle "lepture/vim-velocity"
Bundle "pangloss/vim-javascript"
" jscomplete
Bundle "mattn/jscomplete-vim"
:let g:jscomplete_use = ['dom', 'moz']
" nodejs 'omnifunc' function of vim
Bundle '[email protected]:myhere/vim-nodejs-complete.git'
let g:nodejs_complete_config = {
\ 'js_compl_fn': 'jscomplete#CompleteJS',
\ 'max_node_compl_len': 15
\}
" editorconfig
Bundle 'editorconfig/editorconfig-vim'
" for vim-script debug
Bundle 'Decho'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin indent on " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList - lists configured plugins
" :PluginInstall - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line