A web page provides web-based ssh access to a linux machine. I'm using it one a Windows7 machine.
While editing a file in vi, I want to repeadetly enter the following:
This (1) goes to the next line, then (2) goes to the beginning of the line, then (3) goes to the next occurrence of the search term, then (4) moves one space to the left, then (5) deletes everything on the line to the left of that point. The "0" is just because I'm being really cautious.
I thought what I'd do is write the following
and then copy that and paste it (while not in insert mode, of course) and it would do that operation on 15 lines, and then I could stare at it for a few seconds to make sure it didn't do anything wrong, before doing it the next time. Doing this a couple of hundred times would finish the job in minutes.
But the interface won't let me copy and paste.
- Is there some way I can copy and paste?
- Should I do something intelligent instead? If so, what?