-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_vimrc
More file actions
304 lines (235 loc) · 5.97 KB
/
_vimrc
File metadata and controls
304 lines (235 loc) · 5.97 KB
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
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
" set vim path
let $VIMFILES = $VIM.'/vimfiles'
let $VIMRC = $VIM.'/_vimrc'
let $VIMHOME = $vim.'/vim82'
let $VUNDLE = $VIMFILES."/bundle"
let $UNDOCACHE = $VIM."/.cache/undodir"
let $BACKUPCACHE = $VIM."/.cache/backup"
let $SWPCACHE = $VIM."/.cache/swp"
let $VIEWCACHE = $VIM."/.cache/view"
let $MRU = $VIM."/.cache/mru"
let $BROWSERS=$VIM."/browsers"
" third party app
let $AG=$VIM.'/third_party/Ag/ag.exe'
let $AJAXMIN = $VIM.'/third_party/AjaxMin/AjaxMin.exe'
let $NODEMODULES = $VIM.'/bin/node_modules/.bin'
let $JSHINT = $NODEMODULES.'/jshint.cmd'
" add YouCompleteMe path
let $RUNTIMEPATH=$VIM.'/YouCompleteMe'
set runtimepath+=$RUNTIMEPATH
" set leader
let mapleader=","
let g:mapleader=","
let maplocalleader="."
let g:maplocalleader="."
" set encode
if has("multi_byte")
" A,set encoding
set encoding=utf-8
set fileencodings=utf-8,cp936,cp932
set tenc=utf-8
set maxcombine=4
" open asia support
set fo+=mBM
if v:lang =~? '^\(zh\)\|\(ja\)\|\(ko\)\|\(jp\)'
set ambiwidth=double
endif
if has("win32") || has("win64")
"set fenc=chinese
set fenc=utf-8
if version>=603
set helplang=cn
endif
else
set fenc=utf-8
endif
let &termencoding=&encoding
" B,vim tips support
language messages zh_CN.utf-8
"set langmenu=zh_CN.utf-8
"source $VIMFILES/delmenu.vim
"source $VIMFILES/menu.vim
endif
" set cursor
set cursorline
set cursorcolumn
set gcr=a:blinkoff0
set selection=inclusive
" load plugin vundle
set nocompatible
filetype off
set rtp+=$VIMFILES/bundle/vundle
call vundle#rc($VUNDLE)
" let Vundle manage Vundle, required
Plugin 'gmarik/vundle'
Plugin 'chemzqm/wxapp.vim'
Plugin 'katosun2/imiku'
Plugin 'katosun2/jellybeans.vim'
Plugin 'katosun2/vim-browsers'
Plugin 'katosun2/load_template'
Plugin 'katosun2/vetur'
Plugin 'posva/vim-vue'
"Plugin 'dart-lang/dart-vim-plugin'
Plugin 'katosun2/dart-vim-plugin'
Plugin 'natebosch/vim-lsc'
Plugin 'natebosch/vim-lsc-dart'
Plugin 'thosakwe/vim-flutter'
Plugin 'ap/vim-css-color'
Plugin 'katosun2/fish-redux-template.vim'
Plugin 'katosun2/getx-template.vim'
Plugin 'yegappan/mru'
Plugin 'mbbill/fencview'
Plugin 'vim-scripts/Modeliner'
Plugin 'tpope/vim-surround'
Plugin 'ynkdir/vim-iconv'
"Plugin 'Shougo/vimproc.vim'
Plugin 'katosun2/vimproc.vim'
Plugin 'Shougo/vimshell.vim'
Plugin 'scrooloose/syntastic'
Plugin 'leafgarland/typescript-vim'
Plugin 'pangloss/vim-javascript'
Plugin 'mattn/webapi-vim'
Plugin 'mxw/vim-jsx'
Plugin 'rking/ag.vim'
Plugin 'kien/ctrlp.vim'
" manual install npm install
Plugin 'ternjs/tern_for_vim'
" manual install make js
Plugin 'maralla/completor.vim'
Plugin 'skywind3000/asyncrun.vim'
Plugin 'airblade/vim-gitgutter'
Plugin 'tpope/vim-fugitive'
Plugin 'vim-scripts/DoxygenToolkit.vim'
Plugin 'scrooloose/nerdtree'
Plugin 'scrooloose/nerdcommenter'
Plugin 'sirver/ultisnips'
"Plugin 'katosun2/YouCompleteMe'
filetype plugin indent on
sy on
" set color
color jellybeans
" set doc format
set fileformats=unix,dos
set nobomb
set formatoptions=tcrqn
" set IM model
set iminsert=1
" set view
set ambiwidth=double
" size of a hard tabstop
set tabstop=2
set smarttab
set autoindent
set smartindent
set breakindent
set showbreak=>>>>
" size of an "indent"
set shiftwidth=2
set softtabstop=2
" always uses spaces instead of tab characters
set expandtab
set list
set listchars=tab:\|-
set nu
set numberwidth=5
set title
set titlestring=%(%F%)\
set titlelen=78
set fillchars+=vert:\ ,stl:\ ,stlnc:\
set whichwrap+=<,>,[,]
set iskeyword+=_,$,@,%,#,-
set t_Co=256
set re=1
" tab for cmd-line commplement
set wildmenu
set scrolloff=5
set cmdheight=5
set showcmd
set noshowmode
set report=0
" set font
set guifont=Consolas:h17:cANSI
"set guifont=Fixedsys:h16:cANSI
"set guifontwide=Fixedsys:h16:cGB2312
set guifontwide=Consolas:h17:cGB2312
set linebreak
set nowrap
set backspace=indent,eol,start
" set search
set hlsearch incsearch
set ignorecase smartcase
set showmatch
set showfulltag
set magic
set gdefault
" set mouse
set mouse=a
set selection=exclusive
set selectmode=mouse,key
" set status
set laststatus=2
" set optimization
set timeout
lcd C:/
nmap Q <Esc>
set hidden
set bsdir=buffer
" set warn,close ding ding ding
set noerrorbells
set novb
" set t_vb=""
" 关闭各种按键叮叮声音和闪屏
set vb t_vb=
au GuiEnter * set t_vb=
" set foldmethod
set fen
set foldmethod=manual
set foldlevel=1
set foldcolumn=4
set modeline
hi Folded guibg=#282828 guifg=#CE542E
hi FoldColumn guibg=#282828 guifg=#CE542E
" set tab text mark
set guioptions-=e
" set global info
set viminfo+=!
set sessionoptions-=curdir
" set view
autocmd! bufenter,bufnewfile,winenter,tabenter * cd %:p:h
autocmd! bufwritepost $VIMRC source $VIMRC
au BufWinLeave _vimrc,*.js,*.jsx,*.dart,*.html,*.htm,*.less,*.css,*.php,*.wiki mkview
au BufWinEnter _vimrc,*.js,*.jsx,*.dart,*.html,*.htm,*.less,*.css,*.php,*.wiki silent loadview
if exists('*mkdir') && !isdirectory($VIEWCACHE)
sil! cal mkdir($VIEWCACHE, 'p')
endif
set viewdir=$VIEWCACHE
" set swp
set noswapfile
if exists('*mkdir') && !isdirectory($SWPCACHE)
sil! cal mkdir($SWPCACHE, 'p')
endif
set directory=z:/.cache/swp,$SWPCACHE
" set backup
set backup
set writebackup
set history=1024
set backupcopy=auto
if exists('*mkdir') && !isdirectory($BACKUPCACHE)
sil! cal mkdir($BACKUPCACHE, 'p')
endif
set backupdir=Z:,$BACKUPCACHE
" set undo
set undofile
set undolevels=10000
set undoreload=10000
if exists('*mkdir') && !isdirectory($UNDOCACHE)
sil! cal mkdir($UNDOCACHE, 'p')
endif
set undodir=$UNDOCACHE
"load my dict
set dictionary=$Vim./myDict.txt
"load my config
source $VIM/vimfiles/conf/conf.vim
source $VIM/vimfiles/conf/plugin.vim
source $VIM/vimfiles/conf/diff.vim
" vim: set et fdm=marker ff=dos sts=2 sw=2 ts=2 tw=78 :