Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
doc
 
 
 
 
 
 
 
 
 
 
 
 

README.md

ctrlp-funky

A super 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 for function definitions or equivalent lines using regular expressions, therefore some languages' abstractions aren't accurate because of them being hard to parse.

One of advantages of this plugin is that no configuration is required in most cases, so it starts working right after installation with no ctags required. If you want to have a more accurate list of function defs, you should use other ctags-based tools, etc.

ctrlp-funky

Supported filetypes:

See ctrlp-funky.txt

PREMISE

First of all, I believe you have already installed a great Vim plugin, ctrlp.vim. Otherwise, you need to install ctrlp.vim before you start using this plugin.

INSTALLATION

Plugin managers

It is recommended to install the plugin using your favourite plugin manager or use Vim's built-in package manager if you use Vim 8+.

Manual installation

If you do not use any plugin management system, simply copy autoload and plugin directories to the .vim directory. On Windows, basically, vimfiles directory is used instead of the .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>uu :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

Do you want to make ctrlp-funky funkier? Okay - you can do it with just a single line of config:

let g:ctrlp_funky_syntax_highlight = 1

funky-syntax

Note that this feature doesn't work perfectly, because ctrlp-funky just sets the filetype to the funky buffer. CtrlP's indicator > which appears at the begining of each line in the funky buffer has special meaning for some filetypes such as HTML, XML, etc., so it breaks syntax highlighting.

LINK

LICENSE

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

You can’t perform that action at this time.