This repository has been archived by the owner. It is now read-only.
Vim plugin for of tokei
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
plugin
LICENSE
README.md
TODO.md
vimball.txt

README.md

Installation

With Vundle simply add this to your .vimrc:

Plugin 'vmchale/tokei-vim'

Of couse, you'll need to install tokei as well.

Because it runs tokei in your current working directory, you're probably going to want a plugin to change the root directory appropriately. I use vim-rooter.

Usage

By default, tokei-vim provides a command and a keybinding:

:Tokei
<silent> co

Press q to exit when it displays the code content of your project.

You can also set g:tokei_exlude to exlude a file or pattern; tokei follows the as a .gitignore. If you wish to exclude two patterns, separate them with a comma with no spaces, e.g.

let g:tokei_exclude=TODO.md,README.md