Pregunta:
Yo estaba tratando de escribir una cadena con todos los caracteres de z
a a
y pensé que esto sería mucho más fácil si pudiera escribir al revés.
La idea sería como un modo INSERT en el que el cursor no avanza después de cada carácter insertado. No pude encontrar nada de eso, así que me pregunto si este modo ya existe o se puede lograr de alguna manera.
Nota: Soy consciente de que puedo revertir el texto, pero este no es el punto.
Respuesta:
Si establece :set revins
, puede insertar al revés.
Ver también :h ins-reverse
:
o Typing backwards ins-reverse
----------------
In lieu of using full-fledged the 'rightleft' option, one can opt for
reverse insertion. When the 'revins' (reverse insert) option is set,
inserting happens backwards. This can be used to type right-to-left
text. When inserting characters the cursor is not moved and the text
moves rightwards. A <BS> deletes the character under the cursor.
CTRL-W and CTRL-U also work in the opposite direction. <BS>, CTRL-W
and CTRL-U do not stop at the start of insert or end of line, no matter
how the 'backspace' option is set.
There is no reverse replace mode (yet).
If the 'showmode' option is set, "-- REVERSE INSERT --" will be shown
in the status line when reverse Insert mode is active.