From 3c31aa754907ebf00a806cd088475d4a5033df7c Mon Sep 17 00:00:00 2001 From: wklken Date: Fri, 3 Oct 2014 17:30:46 +0800 Subject: [PATCH] =?UTF-8?q?easymotion=20=E5=A2=9E=E5=8A=A0hjkl=E5=BF=AB?= =?UTF-8?q?=E9=80=9F=E8=B7=B3=E8=BD=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 9 +++++++++ UPDATE_LOG.md | 2 ++ vimrc.bundles | 27 +++++++++++++++++++++++++++ 3 files changed, 38 insertions(+) diff --git a/README.md b/README.md index 40b4d710b..bd61249e7 100644 --- a/README.md +++ b/README.md @@ -486,10 +486,16 @@ molokai主题 必装,效率提升杀手锏,跳转到光标后任意位置 + easymothion主要用于快速查找跳转, 今天看了支持jk快速跳转(支持多字母搜索跳转不过我认为太重了) + 配置(我的leader键配置 let g:mapleader = ',') ,, + w 跳转 ,, + fe 查找'e',快速跳转定位到某个字符位置 + ,,j 快速决定移动到下面哪行(比用行号/j移动快) + ,,k 快速移动到上面哪行 + ,,l 本行, 向后快速移动 + ,,h 本行, 向前快速移动 演示 @@ -893,6 +899,9 @@ version: 8.0 11. 重写README + 12. easymothion + 增加快速hjkl移动快捷键 + ### Contributors diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index a9659c59c..df8790923 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -43,6 +43,8 @@ version: 8.0 11. 重写README + 12. easymothion + 增加快速hjkl移动快捷键 ## 2014-05-07/08 diff --git a/vimrc.bundles b/vimrc.bundles index 82bac6593..8ff77d394 100644 --- a/vimrc.bundles +++ b/vimrc.bundles @@ -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 h (easymotion-linebackward) +map j (easymotion-j) +map k (easymotion-k) +map l (easymotion-lineforward) Bundle 'vim-scripts/matchit.zip' @@ -224,6 +230,13 @@ let g:ctrlp_extensions = ['funky'] Bundle 'tpope/vim-fugitive' ":Gdiff :Gstatus :Gvsplit nnoremap ge :Gdiff +" not ready to open +" gb maps to :Gblame +" gs maps to :Gstatus +" gd maps to :Gdiff 和现有冲突 +" gl maps to :Glog +" gc maps to :Gcommit +" gp maps to :Git push " 同git diff,实时展示文件中修改的行 " 只是不喜欢除了行号多一列, 默认关闭,gs时打开 @@ -360,6 +373,18 @@ Bundle 'majutsushi/tagbar' nmap :TagbarToggle 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` @@ -392,6 +417,8 @@ let g:tagbar_type_go = { \ 'ctagsargs' : '-sort -silent' \ } + + " 去除taglist =>原因: 使用tagbar和ctrlp-funky可以直接快速跳转函数和变量位置,taglist有些多余 "################### 语言相关 ###################