diff --git a/README.md b/README.md index d96a8dd..68fae27 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,10 @@ Installation Or with [Pathogen](https://github.com/tpope/vim-pathogen): `cd ~/.vim/bundle && git clone git://github.com/wakatime/vim-wakatime.git` -2. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`. + Or with [Vim-plug](https://github.com/junegunn/vim-plug): add `Plug 'wakatime/vim-wakatime` to .vimrc file. While in vim reload .vimrc with `:so ~/.vimrc` or restart vim, enter + `:PlugInstall`. + +2. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`. 3. Use Vim and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com). @@ -83,6 +86,15 @@ Uninstalling 3. Run in terminal: `vim +PluginClean`. +**_If using vim-plug_** + +_While in vim_ + +1. Delete or comment out `Plug` command from .vimrc file. + +2. Reload vimrc (`:so ~/.vimrc`) or restart vim + +3. Run `:PlugClean`, it will detect and remove undeclared plugins. [wakatime-cli]: https://github.com/wakatime/wakatime [wakatime-cli-config]: https://github.com/wakatime/wakatime#configuring