Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
a ctrlp.vim extension - Navigate and jump to function defs
VimL

Enabling syntax highlight with multi buffer mode

TODO: Syntax highlight should be enabled if all buffers are the same
filetype
latest commit 519db3a54f
@tacahiroy authored

README.md

ctrlp-funky

Very simple function navigator for ctrlp.vim.

SYNOPSIS

This is a ctrlp.vim extension. It simply navigates and jumps to function definitions from the current file without ctags. It just searches function definitions or equivalent lines using regular expressions, therefore some languages' abstraction aren't accurate because of hard to parse.

One of advantages of this plugin is you needn't to generate tags file to jump to definition of functions, classes etc.

ctrlp-funky

Supported filetypes:

See ctrlp-funky.txt

PREMISE

First of all, I believe you're a user of a great Vim plugin called ctrlp.vim. Otherwise, you need to install ctrlp.vim before start using this plugin.

INSTALLATION

Vundle

  1. Run :PluginInstall tacahiroy/ctrlp-funky
  2. Add Plugin 'tacahiroy/ctrlp-funky' to .vimrc

vim-plug

  1. Add Plug 'tacahiroy/ctrlp-funky' to .vimrc
  2. Run :PlugInstall

pathogen.vim

  1. cd ~/.vim/bundle
  2. git clone git://github.com/tacahiroy/ctrlp-funky.git

Manually

If you don't use either plugin management systems, copy autoload and plugin directories to .vim directory. On Windows, basically, vimfiles directory is used instead of .vim directory.

CONFIGURATION

It should be useful to define key mappings like this:

nnoremap <Leader>fu :CtrlPFunky<Cr>
" narrow the list down with a word under cursor
nnoremap <Leader>fU :execute 'CtrlPFunky ' . expand('<cword>')<Cr>

EXPERIMENTAL

MATCHED CHARS HIGHLIGHTING

If you want to have this highlight feature, you may configure like this:

let g:ctrlp_funky_matchtype = 'path'

See :h g:ctrlp_funky_matchtype for more details and notes.

funky-matched-chars-highlighting

SYNTAX HIGHLIGHTING

I'd like to introduce one of ctrlp-funky options. Do you want to make ctrlp-funky funkier? Okay - you can do it with just 1 line config.

let g:ctrlp_funky_syntax_highlight = 1

funky-syntax

Note that this feature doesn't work perfectly, because ctrlp-funky just sets filetype to the funky buffer and the buffer contains '>' in the first column. In some filetypes, this sign has special meaning such as HTML tag, so it breaks syntax highlighting.

LINK

LICENSE

Copyright (C) 2012-2015 Takahiro Yoshihara. Distributed under the MIT License.

Something went wrong with that request. Please try again.