Skip to content
This repository has been archived by the owner. It is now read-only.
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

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
You can’t perform that action at this time.