Giter Club home page Giter Club logo

ctrlp-funky's Introduction

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

Currently, following filetypes are supported:

  • c/cpp (C/C++)
  • chef
  • cmm (TRACE32)
  • coffee-script
  • dart
  • elixir
  • go
  • html/xhtml
  • java
  • javascript
  • jinja (template engine for Python)
  • LaTeX
  • lua
  • make (Makefile)
  • markdown
  • moon (MoonScript)
  • nerdtree
  • objc (Objective-C)
  • perl
  • php
  • python
  • ruby
  • scala
  • sh (bash, dash and zsh)
  • typescript
  • yaml
  • vb (Visual Basic)
  • vim

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

:PluginInstall tacahiroy/ctrlp-funky

In addition, don't forget put a line below into your .vimrc.

Plugin 'tacahiroy/ctrlp-funky'

pathogen.vim

$ cd ~/.vim/bundle
$ 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 your .vim directory. On Windows, basically, vimfiles directory is used instead of .vim directory.

CONFIGURATION

It's 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.

ctrlp-funky's People

Contributors

tacahiroy avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.