Timeline for How to repeat the last : command for a visual selection instead of whole buffer?
Current License: CC BY-SA 4.0
6 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Aug 2, 2019 at 11:52 | comment | added | eyal karni | I have that upper arrow in the command window brings the last command, if you want to ask about this, ask another question or look for the answer(better) | |
Jul 26, 2019 at 23:23 | comment | added | dash-tom-bang |
You can also expand the command register in-line. Type : , you get the selection markers added automatically, then type Ctrl-r followed by : to insert a copy of the last command line. (See :help quote_: for info on this and other registers and :help c_CTRL-R for info on what that keystroke does in command mode.)
|
|
Jul 25, 2019 at 12:52 | comment | added | d.k | @ruohola, there is a couple of suggestions in such a case | |
Jul 25, 2019 at 12:50 | history | edited | d.k | CC BY-SA 4.0 |
added 140 characters in body
|
Jul 25, 2019 at 12:44 | comment | added | ruohola |
I'm afraid you didn't understand my question. Yes I know I can operate on the visual selection by just selecting some lines and typing : , which will automatically insert :'<,'> to the command line, BUT I would have to type the whole g/^.\{1,50\}$/m$ command again after that, and that is what I'm trying to avoid here.
|
|
Jul 25, 2019 at 12:40 | history | answered | d.k | CC BY-SA 4.0 |