How do I paste in insert mode

York Zhao gtdplatform at gmail.com
Mon May 2 20:34:11 CEST 2011


I just tested it again, although some minor thing is not handled elegantly,
for example, the cursor and the state indicator letter is not changing to
confirm with the current state, it did work. Sorry about that.

On the other hand, I still think the document is a bit confusing, the
wording is "Escape from Emacs state to Vi state", I didn't think 'Emacs'
state is identical to 'insert' state. Maybe my understanding was not
correct? :)

Thanks,

York


On Mon, May 2, 2011 at 4:46 AM, Vegard Øye <vegard_oye at hotmail.com> wrote:
On 2011-05-01 18:44 +0200, York Zhao wrote:

> In our case here, the existing 'viper-escape-to-vi' function escapes
> to command mode but never comes back to insert mode again, thus, I
> don't think it can be binded directly to 'C-o'

It does come back to Insert state in my setup (Viper version 3.14
of November 22, 2008). Here is the docstring of `viper-escape-to-vi':

   Escape from Emacs state to Vi state for one Vi 1-character
   command. If the Vi command that the user types has a prefix
   argument, e.g., `d2w', then Vi's prefix argument will be used.
   Otherwise, the prefix argument passed to `viper-escape-to-vi'
   is used.

If I am in vi state and type "i C-o x e", then I enter Insert state,
delete the character under the cursor, and insert "e"; I remain in
Insert state.

--
Vegard

_______________________________________________
implementations-list mailing list
implementations-list at lists.ourproject.org
https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110502/77ef2deb/attachment.htm 


More information about the implementations-list mailing list