Open tuftman-0 opened 6 years ago
Hmm. I like this idea in concept. It's actually something I've given quite a bit of thought to before. But there are some issues that would need to be figured out first.
Right now, both <M-r> (ò)
and <M-q>(ñ)
record into register 'q'. So 4ñ<code>ñ
is equivalent to qq<code>q3@q
. If we allowed nested loops, we'd have to figure out which registers they're going into.
Both looping commands rely heavily on the ability to break the loop early, for example by performing an invalid :s/
command or using hjkl
to attempt to move out of bounds. What should happen when an inner loop breaks? Right now that would break the outer loop too, but it seems like that would limit usefulness.
ok, let me know if you'd like me to try to help with something. I don't really know vimscript, but I know python pretty well.
Hi, I'd really like to be able to make nested loops in V. Would it be possible to add this functionality sometime? so like ò{big loop ò{ loop for each big loop ò} still big loop ò} maybe add a "close loop" character for ò and ñ.