Vim

The WakaTime plugin works for both Terminal Vim and Graphical Vim and is open-source on GitHub.

Using Vundle

Installing

  1. Install Vundle for Vim.

  2. From terminal run:

    echo "Plugin 'wakatime/vim-wakatime'" >> ~/.vimrc && vim +PluginInstall

  3. (Re-)start Vim and enter your API key , then press Enter.

  4. Use Vim like you normally do and your time will be tracked for you automatically.

  5. Visit https://wakatime.com/dashboard to see your logged time.

Upgrading

  1. Inside Vim, press ESC.

  2. Type :PluginUpdate and press Enter.

Uninstalling

  1. Remove the line Plugin 'wakatime/vim-wakatime' from your ~/.vimrc.

  2. Restart Vim.

Using Pathogen

Installing

  1. From terminal run:

    cd ~/.vim/bundle && git clone git://github.com/wakatime/vim-wakatime.git

  2. (Re-)start Vim and enter your API key , then press Enter.

  3. Use Vim like you normally do and your time will be tracked for you automatically.

  4. Visit https://wakatime.com/dashboard to see your logged time.

Upgrading

  1. From terminal run

    cd ~/.vim/bundle/vim-wakatime && git pull origin master

Uninstalling

  1. From terminal run

    cd ~/.vim/bundle && rm -rf vim-wakatime

    This command will only remove the plugin from Vim, but will keep your ~/.wakatime.cfg with your API key and configuration.

  2. Restart Vim.