Adds vim cycle plugin and config

This plugin extends the ctrl+a and ctrl+x mappings to cycle through
related words as well as the default incremending / decremending
numbers.

I can now cycle through days of the week, margin/padding in css and
true/false.
This commit is contained in:
Jonathan Hodgson 2020-09-08 10:08:15 +01:00
parent 3ef2f89346
commit 746369cf5a
3 changed files with 28 additions and 0 deletions

3
.gitmodules vendored
View file

@ -87,3 +87,6 @@
[submodule "bundle/vim-unimpaired"]
path = bundle/vim-unimpaired
url = https://github.com/tpope/vim-unimpaired.git
[submodule "bundle/vim-cycle"]
path = bundle/vim-cycle
url = https://github.com/zef/vim-cycle

24
after/plugin/cycle.vim Normal file
View file

@ -0,0 +1,24 @@
call AddCycleGroup(['set', 'get'])
call AddCycleGroup(['form', 'to'])
call AddCycleGroup(['push', 'pop'])
call AddCycleGroup(['mas', 'menos'])
call AddCycleGroup(['prev', 'next'])
call AddCycleGroup(['start', 'end'])
call AddCycleGroup(['light', 'dark'])
call AddCycleGroup(['open', 'close'])
call AddCycleGroup(['read', 'write'])
call AddCycleGroup(['truthy', 'falsy'])
call AddCycleGroup(['filter', 'reject'])
call AddCycleGroup(['internal', 'external'])
call AddCycleGroup(['short', 'normal', 'long'])
call AddCycleGroup(['subscribe', 'unsubscribe'])
call AddCycleGroup(['header', 'body', 'footer'])
call AddCycleGroup(['protected', 'private', 'public'])
call AddCycleGroup(['red', 'blue', 'green', 'yellow'])
call AddCycleGroup(['tiny', 'small', 'medium', 'big', 'huge'])
call AddCycleGroup(['pico', 'nano', 'micro', 'mili', 'kilo', 'mega', 'giga', 'tera', 'peta'])
call AddCycleGroup(['sunday', 'monday', 'tuesday', 'wensday', 'thursday', 'friday', 'saturday'])
call AddCycleGroup('markdown', ['#', '##', '###', '#####', '#####', '######'])

1
bundle/vim-cycle Submodule

@ -0,0 +1 @@
Subproject commit b3e81608d30f99e5575cffcd08cb873517a21b4f