sponsor Vim development Vim logo Vim Book Ad

ctrlp-tjump : CtrlP extension for fuzzy-search in tag matches (tjump/tselect replacement)

 script karma  Rating 23/10, Downloaded by 1990  Comments, bugs, improvements  Vim wiki

created by
Ivan Tkalin
 
script type
utility
 
description
CtrlP extension for fuzzy-searching in tag matches. May be used instead of :tjump or :tselect for IDE-like Goto declaration functionality, which jumps to the declaration in case of one match, and shows quick-search window in case of multiple matches.

Two vim commands are created by this plugin:

* `CtrlPtjump` - go to declaration of the identifier under cursor
* `CtrlPtjumpVisual` - go to declaration of the visual selected text

https://github.com/ivalkeen/vim-ctrlp-tjump

Prerequisites:
1. CtrlP should be installed
2. Tags should already work with :tag, :tselect and :tjump commands.

Installation:
1. Use your favorite method (I prefer Vundle)
2. (Optional) Create mappings:
nnoremap <c-]> :CtrlPtjump<cr>
vnoremap <c-]> :CtrlPtjumpVisual<cr>


Usage:
1. Move cursor to the Class/Method usage in your code
2. Press c-] (if you have created mapping) or just execute :CtrlPtjump in the command line (or `:CtrlPtjumpVisual` in visual mode) in the command line.

Screenshot: https://github-camo.global.ssl.fastly.net/41125e06c9b55368d39d59c50ff136b5b6867a87/687474703a2f2f692e696d6775722e636f6d2f3155724d4f70642e706e67
 
install details
Unzip into your .vim directory or use Pathogen/Vundle
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
vim-ctrlp-tjump-0.2.0.zip 0.2.0 2014-07-06 7.4 Ivan Tkalin Support all CtrlP file open modes (current window, new tab, vertical split, horizontal split)
vim-ctrlp-tjump-0.1.0.tar.gz 0.1.0 2013-08-30 7.0 Ivan Tkalin Added CtrlPtjumpVisual command to go to declaration of the selected text. Bugfixes.
vim-ctrlp-tjump-0.0.1.tar.gz 0.0.1 2013-07-26 7.0 Ivan Tkalin Initial upload
ip used for rating: 216.73.216.46

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github