From 52a6266ce44d22ebb99a9c32f13dc0e122bf0f87 Mon Sep 17 00:00:00 2001 From: yan Date: Wed, 2 May 2012 22:41:51 -0700 Subject: [PATCH] Added ,m and ,M jump-to-method(tag) via CtrlP --- README.md | 4 +++- vim/plugin/settings/ctrlp.vim | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index feac469..1fb7bfa 100644 --- a/README.md +++ b/README.md @@ -306,7 +306,8 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * `,t` - CtrlP fuzzy file selector * `,b` - CtrlP buffer selector - * `Cmd-Shift-P` - Clear CtrlP cache + * `,m` - jump to method - CtrlP tag search within current buffer + * `,M` - jump to any Method - CtrlP tag search within all buffers * `,jm` jump (via CtrlP) to app/models * `,jc` app/controllers * `,jv` app/views @@ -320,6 +321,7 @@ files contain key mappings as well (TODO: probably will move them out to skwp-ke * `,jC` config * `,jV` vendor * `,jF` factories + * `Cmd-Shift-P` - Clear CtrlP cache #### RSI-reduction diff --git a/vim/plugin/settings/ctrlp.vim b/vim/plugin/settings/ctrlp.vim index 07733f5..6d588c7 100644 --- a/vim/plugin/settings/ctrlp.vim +++ b/vim/plugin/settings/ctrlp.vim @@ -27,8 +27,14 @@ map ,jl :CtrlP lib map ,jp :CtrlP public map ,js :CtrlP spec map ,jf :CtrlP fast_spec -map ,jt :CtrlP test map ,jd :CtrlP db map ,jC :CtrlP config map ,jV :CtrlP vendor map ,jF :CtrlP factories +map ,jT :CtrlP test + +"Cmd-(m)ethod - jump to a method (tag in current file) +map ,m :CtrlPBufTag + +"Ctrl-(M)ethod - jump to a method (tag in all files) +map ,M :CtrlPBufTagAll