amp*_*ine 23
当然!
:set rightleft
Run Code Online (Sandbox Code Playgroud)
或者,只是rl。但是,这将按照您键入的顺序保存包含字符的文件。如果您希望将其反向保存,请:%!rev在保存前键入。
编辑:
如果使用revinsorri选项,则向后插入。您可能可以将其映射到组合键,但这取决于您。
以下是 vim 帮助的相应部分:
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.
Run Code Online (Sandbox Code Playgroud)