Skip to content

Commit

Permalink
easymotion 增加hjkl快速跳转
Browse files Browse the repository at this point in the history
  • Loading branch information
wklken committed Oct 3, 2014
1 parent 130560b commit 3c31aa7
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -486,10 +486,16 @@ molokai主题

必装,效率提升杀手锏,跳转到光标后任意位置

easymothion主要用于快速查找跳转, 今天看了支持jk快速跳转(支持多字母搜索跳转不过我认为太重了)

配置(我的leader键配置 let g:mapleader = ',')

,, + w 跳转
,, + fe 查找'e',快速跳转定位到某个字符位置
,,j 快速决定移动到下面哪行(比用行号/j移动快)
,,k 快速移动到上面哪行
,,l 本行, 向后快速移动
,,h 本行, 向前快速移动

演示

Expand Down Expand Up @@ -893,6 +899,9 @@ version: 8.0

11. 重写README

12. easymothion
增加快速hjkl移动快捷键



### Contributors
Expand Down
2 changes: 2 additions & 0 deletions UPDATE_LOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ version: 8.0

11. 重写README

12. easymothion
增加快速hjkl移动快捷键

## 2014-05-07/08

Expand Down
27 changes: 27 additions & 0 deletions vimrc.bundles
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,12 @@ let g:easy_align_delimiters['#'] = { 'pattern': '#', 'ignore_groups': ['String']

"更高效的移动 [,, + w/fx]
Bundle 'Lokaltog/vim-easymotion'
let g:EasyMotion_smartcase = 1
" let g:EasyMotion_startofline = 0 " keep cursor colum when JK motion
map <Leader><leader>h <Plug>(easymotion-linebackward)
map <Leader><Leader>j <Plug>(easymotion-j)
map <Leader><Leader>k <Plug>(easymotion-k)
map <Leader><leader>l <Plug>(easymotion-lineforward)

Bundle 'vim-scripts/matchit.zip'

Expand Down Expand Up @@ -224,6 +230,13 @@ let g:ctrlp_extensions = ['funky']
Bundle 'tpope/vim-fugitive'
":Gdiff :Gstatus :Gvsplit
nnoremap <leader>ge :Gdiff<CR>
" not ready to open
" <leader>gb maps to :Gblame<CR>
" <leader>gs maps to :Gstatus<CR>
" <leader>gd maps to :Gdiff<CR> 和现有冲突
" <leader>gl maps to :Glog<CR>
" <leader>gc maps to :Gcommit<CR>
" <leader>gp maps to :Git push<CR>

" 同git diff,实时展示文件中修改的行
" 只是不喜欢除了行号多一列, 默认关闭,gs时打开
Expand Down Expand Up @@ -360,6 +373,18 @@ Bundle 'majutsushi/tagbar'
nmap <F9> :TagbarToggle<CR>
let g:tagbar_autofocus = 1

" for ruby
let g:tagbar_type_ruby = {
\ 'kinds' : [
\ 'm:modules',
\ 'c:classes',
\ 'd:describes',
\ 'C:contexts',
\ 'f:methods',
\ 'F:singleton methods'
\ ]
\ }

" go语言的tagbar配置
" 1.install gotags 'go get -u github.com/jstemmer/gotags'
" 2.make sure `gotags` in you shell PATH, you can call check it with `which gotags`
Expand Down Expand Up @@ -392,6 +417,8 @@ let g:tagbar_type_go = {
\ 'ctagsargs' : '-sort -silent'
\ }



" 去除taglist =>原因: 使用tagbar和ctrlp-funky可以直接快速跳转函数和变量位置,taglist有些多余

"################### 语言相关 ###################
Expand Down

0 comments on commit 3c31aa7

Please sign in to comment.