1 May 2011 18:44
Re: How do I paste in insert mode
York Zhao <gtdplatform <at> gmail.com>
2011-05-01 16:44:50 GMT
2011-05-01 16:44:50 GMT
Hi Vegard,
Thanks for applying my patch.
While I was merging the master branch and my local branch I noticed that your changes to "C-o" doesn't seem to be correct. "C-o" in Vim is supposed to escape to command mode for only ONE command and then comes back to insert mode. It is similar to 'r' command which enters inert mode to replace the current char and returns back to command mode immediately. 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', and this is why I added the 'viper-escape-to-vi-state' function which switches back to insert mode after one command. Plus, depending on the setting of 'viper-ESC-moves-cursor-back', the cursor position may need to be adjusted by '(viper-forward-char 1)' (even though the 'vipre-ESC-moves-cursor-back' option itself doesn't work which is another bug).
Thanks,
York
On Sat, Apr 30, 2011 at 11:07 AM, Vegard Øye <vegard_oye <at> hotmail.com> wrote:
On 2011-04-26 18:30 +0200, York Zhao wrote:
> Please find attached my patches for three added features. Note that
> I have included Christoph Lange's "g; and g," as well.
Applied in commits c07634c, 32d845f and 1cd84be, with some small
adjustments. It turns out that Viper has an unbound command for
temporarily exiting to vi state, `viper-escape-to-vi', so I bound
that to "C-o" in Insert state.
--
Vegard
_______________________________________________
implementations-list mailing list
_______________________________________________ implementations-list mailing list implementations-list <at> lists.ourproject.org https://lists.ourproject.org/cgi-bin/mailman/listinfo/implementations-list
I only want to be able to use terse editing commands occasionally eg
for text objects. Because viper will be disabled the rest of the
time, I can simply carry on using everything as I normally do with my
fine-tuned configuration.
RSS Feed