|
|
|
|
|
by zefhous
5023 days ago
|
|
I wrote a similar plugin called vim-cycle, it's a bit different but basically the same concept. https://github.com/zef/vim-cycle I really use it all the time and find it extremely useful, but not exactly in the way he seems to in the video. One of the ways I frequently use it is for CSS, where there are related words that can frequently change, like margin/padding, top/bottom, class/id, png/gif/jpg, absolute/relative, or in Ruby if/unless, present/blank, else/else if. Things like that... The mapping I use is the same as is used to increment and decrement numbers in Vim, which is very natural to me so it's a really easy way to switch things much more quickly than typing them. You can see the pairs I define by default in my plugin here: https://github.com/zef/vim-cycle/blob/master/plugin/cycle.vi... |
|