Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

vmchale/tokei-vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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