We value Open Source and make a point to release all our plugins on GitHub under a BSD License.
curl -fsSL https://raw.githubusercontent.com/wakatime/vim-wakatime/master/scripts/install_cli.py | python
If the above command doesn't work, download install_cli.py and run it manually with Python 3.
Create a ~/.wakatime.cfg file with contents:
api_key = XXXX
Replace XXXX with your actual API Key.
Mac and Linux
curl -fsSL https://raw.githubusercontent.com/wakatime/texstudio-wakatime/master/install.py | python
Download and extract texstudio-wakatime-master.zip, then double click install.py.
Use TeXstudio like normal and your stats will automatically show on your WakaTime Dashboard.