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.
master
Jonathan Hodgson 4 years ago
parent 3ef2f89346
commit 746369cf5a
  1. 3
      .gitmodules
  2. 24
      after/plugin/cycle.vim
  3. 1
      bundle/vim-cycle

3
.gitmodules vendored

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

@ -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', ['#', '##', '###', '#####', '#####', '######'])

@ -0,0 +1 @@
Subproject commit b3e81608d30f99e5575cffcd08cb873517a21b4f
Loading…
Cancel
Save