Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/activitywatch/aw-watcher-vim
https://github.com/activitywatch/aw-watcher-vim
activitywatch-watcher neovim vim
Last synced: about 3 hours ago
JSON representation
- Host: GitHub
- URL: https://github.com/activitywatch/aw-watcher-vim
- Owner: ActivityWatch
- Created: 2018-03-09T15:40:35.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-10-09T16:44:14.000Z (about 1 year ago)
- Last Synced: 2024-11-06T07:21:34.590Z (2 days ago)
- Topics: activitywatch-watcher, neovim, vim
- Language: Vim Script
- Size: 29.3 KB
- Stars: 110
- Watchers: 8
- Forks: 14
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
aw-watcher-vim
==============### Installation
This plugin depends on curl, so make sure that it's installed and available in your PATH
It is recommended to have a vim runtime manager to make it easier to install (such as Pathogen or Vundle)
Then simply clone this repository to the bundle folder in your vim config folder (usually `~/.vim/bundle` or `~/.config/nvim/bundle` for neovim)
### Usage
Once installed in the bundle directory, it should load automatically if you have a vim runtime manager
```
:AWStart - start logging if not already logging
:AWStop - stop logging if logging
:AWStatus - verify that the watcher is running
```If aw-watcher-vim loses connection it will give you an error message and stop logging. You then need to either run :AWStart or restart vim to start logging again
### Configuration
The following global variables are available:
| Variable Name | Description | Default Value |
|--------------------|------------------------------------------------|---------------|
| `g:aw_apiurl_host` | Sets the _host_ of the Api Url | `127.0.0.1` |
| `g:aw_apiurl_port` | Sets the _port_ of the Api Url | `5600` |
| `g:aw_api_timeout` | Sets the _timeout_ seconds of the Api request | `2.0` |
| `g:aw_hostname` | Overides the default hostname | `hostname()` |