Skip to content

vim plugin that shows the current function/tag in the statusline

Notifications You must be signed in to change notification settings

evforde/taghelper.vim

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Overview

https://travis-ci.org/mgedmin/taghelper.vim.svg?branch=master

Vim plugin to show the name of the current tag (usually function) in the status line.

screenshot

Inspired by Michal Vitecek's pythonhelper.vim and my chelper.vim. Intended to replace both of them.

Needs Vim 8.0.0251 or newer, built with Python support.

Supports multiple languages:

  • Python
  • C
  • C++
  • diff files

Doesn't actually use tags files -- instead it has its own hacky parsers.

Installation

I suggest you use a plugin manager like vim-plug:

Plug 'mgedmin/taghelper.vim'

Configuration

Add %{taghelper#curtag()} to your 'statusline', e.g.

set statusline=%<%f\ %h%m%r\ %1*%{taghelper#curtag()}%*%=%-14.(%l,%c%V%)\ %P

Debugging

:call taghelper#showtags() will print all the tags detected in a source file. If you find that some code is parsed incorrectly (my parser is really simple!), please file a bug on GitHub.

Copyright

taghelper.vim was written by Marius Gedminas <marius@gedmin.as>. Licence: MIT.

About

vim plugin that shows the current function/tag in the statusline

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 92.9%
  • Vim Script 7.1%