Skip to content

Train yourself with vim motions and make your own train tracks :)

License

Notifications You must be signed in to change notification settings

tjdevries/train.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

train.nvim

Train yourself with vim motions and make your own train tracks :)

example

Installation

Tested on nvim-0.4.3+

Does not work on Vim, due to incompatible floating window APIs.

" Required
Plug 'tjdevries/train.nvim'

Built-in Commands

" 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

call train#show_matches(['w', 'j', ']]', '[['])

Still Under Construction 😄

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:
    • <Plug>(train_up_down)
    • <Plug>(train_left_right)
    • <Plug>(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 🌟

About

Train yourself with vim motions and make your own train tracks :)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published

Languages