2 ms·
Vim has a limited form of this: control-E and control-Y in insert mode copy the character on the previous/next line (both in Emacs/Vim look for extensions about
by astrobe_ 10y ago
Vim has a limited form of this: control-E and control-Y in insert mode copy the character on the previous/next line (both in Emacs/Vim look for extensions about "multiple cursors" if you're interested in this feature).
I remember the line editor of the CPC used to edit Basic programs also had this feature.
- tetraodonpuffer 10y agoI use multiple cursors in Emacs all the time, but it's a really different workflow from this type of editor, with this it's like having two independent cursors, one for insert and one for "copy from here", you can switch between the two and move them around (don't remember if you could search on the copy cursor, but it would make sense you could) when you press the copy key they both move 1 char to the right and the char from the copy cursor ends up at the insert cursor, in skilled hands this can make some typical coding "copy this line and modify it slightly" quite fast Really surprised it didn't catch on in other editors, I wonder if it could be done in emacs by having a command that copies a char from mark to point and moves them both right, as well as a different cursor to put in mark, since you can already exchange point and mark it seems this should make this functionality feasible