Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tjdevries/train.nvim
Train yourself with vim motions and make your own train tracks :)
https://github.com/tjdevries/train.nvim
Last synced: about 2 months ago
JSON representation
Train yourself with vim motions and make your own train tracks :)
- Host: GitHub
- URL: https://github.com/tjdevries/train.nvim
- Owner: tjdevries
- License: mit
- Created: 2017-06-30T18:45:51.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T19:05:32.000Z (about 1 year ago)
- Last Synced: 2024-06-18T01:34:19.179Z (3 months ago)
- Language: Lua
- Size: 106 KB
- Stars: 134
- Watchers: 6
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# train.nvim
Train yourself with vim motions and make your own train tracks :)
![example](./media/example.gif)
# Installation
Tested on nvim-0.4.3+
Does not work on Vim, due to incompatible floating window APIs.
```vim
" Required
Plug 'tjdevries/train.nvim'
```# Built-in Commands
```vim
" Train for movements up and down
:TrainUpDown" Train for movements related to words
:TrainWord" Train for movements related to text objects
:TrainTextObj
```# Add your own train tracks
```vim
call train#show_matches(['w', 'j', ']]', '[['])
```## Still Under Construction :smile:
TODO:
- Allow to "cycle through" the options that we've done, in the case of long reaaching movements
- Add more "styles" of movement, and then map them to something like:
- `(train_up_down)`
- `(train_left_right)`
- `(train_word)`
- etc...
- Add a menu/denite/unite source for "options" of learning movement
- Add visual mode type support? Something similar to MatchParen style
- Add some movements from popular plugins?
- Write a good readme :star2: