@@ -153,6 +153,12 @@ let g:easy_align_delimiters['#'] = { 'pattern': '#', 'ignore_groups': ['String']
153
153
154
154
"更高效的移动 [,, + w/fx]
155
155
Bundle 'Lokaltog/vim-easymotion'
156
+ let g:EasyMotion_smartcase = 1
157
+ " let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion
158
+ map <Leader><leader>h <Plug>(easymotion-linebackward)
159
+ map <Leader><Leader>j <Plug>(easymotion-j)
160
+ map <Leader><Leader>k <Plug>(easymotion-k)
161
+ map <Leader><leader>l <Plug>(easymotion-lineforward)
156
162
157
163
Bundle 'vim-scripts/matchit.zip'
158
164
@@ -224,6 +230,13 @@ let g:ctrlp_extensions = ['funky']
224
230
Bundle 'tpope/vim-fugitive'
225
231
":Gdiff :Gstatus :Gvsplit
226
232
nnoremap <leader>ge :Gdiff<CR>
233
+ " not ready to open
234
+ " <leader>gb maps to :Gblame<CR>
235
+ " <leader>gs maps to :Gstatus<CR>
236
+ " <leader>gd maps to :Gdiff<CR> 和现有冲突
237
+ " <leader>gl maps to :Glog<CR>
238
+ " <leader>gc maps to :Gcommit<CR>
239
+ " <leader>gp maps to :Git push<CR>
227
240
228
241
" 同git diff,实时展示文件中修改的行
229
242
" 只是不喜欢除了行号多一列, 默认关闭,gs时打开
@@ -360,6 +373,18 @@ Bundle 'majutsushi/tagbar'
360
373
nmap <F9> :TagbarToggle<CR>
361
374
let g:tagbar_autofocus = 1
362
375
376
+ " for ruby
377
+ let g:tagbar_type_ruby = {
378
+ \ 'kinds' : [
379
+ \ 'm:modules',
380
+ \ 'c:classes',
381
+ \ 'd:describes',
382
+ \ 'C:contexts',
383
+ \ 'f:methods',
384
+ \ 'F:singleton methods'
385
+ \ ]
386
+ \ }
387
+
363
388
" go语言的tagbar配置
364
389
" 1.install gotags 'go get -u github.com/jstemmer/gotags'
365
390
" 2.make sure `gotags` in you shell PATH, you can call check it with `which gotags`
@@ -392,6 +417,8 @@ let g:tagbar_type_go = {
392
417
\ 'ctagsargs' : '-sort -silent'
393
418
\ }
394
419
420
+
421
+
395
422
" 去除taglist =>原因: 使用tagbar和ctrlp-funky可以直接快速跳转函数和变量位置,taglist有些多余
396
423
397
424
"################### 语言相关 ###################
0 commit comments