Merge pull request #69 from yankskwesi/master

Adding installation instructions for Vim-plug plugin manager in readme
This commit is contained in:
Alan Hamlett 2018-07-14 09:40:07 -07:00 committed by GitHub
commit 25aa400fd1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,9 @@ Installation
Or with [Pathogen](https://github.com/tpope/vim-pathogen): `cd ~/.vim/bundle && git clone git://github.com/wakatime/vim-wakatime.git` Or with [Pathogen](https://github.com/tpope/vim-pathogen): `cd ~/.vim/bundle && git clone git://github.com/wakatime/vim-wakatime.git`
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`. 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). 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`. 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]: https://github.com/wakatime/wakatime
[wakatime-cli-config]: https://github.com/wakatime/wakatime#configuring [wakatime-cli-config]: https://github.com/wakatime/wakatime#configuring