有前置插入模式吗?


10

我试图写一个字符串,所有字符都从za,我认为如果可以向后写,这会容易得多。

这个想法就像是INSERT模式,在该模式下,在插入每个字符后光标不会前进。我找不到这样的东西,所以我想知道这种模式是否已经存在或可以通过某种方式实现?

注意:我知道我可以颠倒文字,但这不是重点。

Answers:


12

如果设置:set revins,则可以向后插入。

另请参阅: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.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.