@@ -153,6 +153,12 @@ let g:easy_align_delimiters['#'] = { 'pattern': '#', 'ignore_groups': ['String']
153153
154154"更高效的移动 [,, + w/fx]
155155Bundle '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)
156162
157163Bundle 'vim-scripts/matchit.zip'
158164
@@ -224,6 +230,13 @@ let g:ctrlp_extensions = ['funky']
224230Bundle 'tpope/vim-fugitive'
225231":Gdiff :Gstatus :Gvsplit
226232nnoremap <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>
227240
228241" 同git diff,实时展示文件中修改的行
229242" 只是不喜欢除了行号多一列, 默认关闭,gs时打开
@@ -360,6 +373,18 @@ Bundle 'majutsushi/tagbar'
360373nmap <F9> :TagbarToggle<CR>
361374let g:tagbar_autofocus = 1
362375
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+
363388" go语言的tagbar配置
364389" 1.install gotags 'go get -u github.com/jstemmer/gotags'
365390" 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 = {
392417 \ 'ctagsargs' : '-sort -silent'
393418\ }
394419
420+
421+
395422" 去除taglist =>原因: 使用tagbar和ctrlp-funky可以直接快速跳转函数和变量位置,taglist有些多余
396423
397424"################### 语言相关 ###################
0 commit comments