somini / current-func-info.vim

Get current function name

Home Page:http://www.vim.org/scripts/script.php?script_id=3197

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

current-func-info.vim

This Plugin aim to provide the function to get the current function name which your cussor in located at. It is very useful when the function name is long, you dont have to scroll up to know where you are.

Supported Languages

  1. C
  2. Go
  3. Perl
  4. PHP
  5. Python
  6. Ruby
  7. VimL
  8. PL/SQL

Installation

Manual

Copy the files plugin, ftplugin, doc, autoload directories into the related directories on your runtime path.

Using Vundle

  1. Add this line in your VundleFile
    Bundle "tyru/current-func-info.vim"
  1. Excute this command in your terminal.
	vim +BundleInstall +qall

Configuration

Map your shortcut key to echo the current function name on the status bar.

Add this line in your .vimrc file.

nnoremap <C-g>f :echo cfi#format("%s", "")<CR>

About

Get current function name

http://www.vim.org/scripts/script.php?script_id=3197


Languages

Language:Vim Script 100.0%