Loading ...
Sorry, an error occurred while loading the content.

72077Re: Breaking undo in Insert mode

Expand Messages
  • Ben Fritz
    Jul 11, 2013
      On Thursday, July 4, 2013 4:44:26 AM UTC-5, Bram Moolenaar wrote:
      > Perhaps we can somehow detect that CTRL-R = had the side effect of
      > changing the text and then split undo. When it only returns the text to
      > be inserted, there is no need to split undo.

      Even though it won't fix it all the way, I think this is a good idea. It will make things a lot better at least.

      Then we can do this obviously simplified example without breaking undo:

      inoremap <Space> <C-R>="\<LT>Space>"<CR>

      You received this message from the "vim_dev" maillist.
      Do not top-post! Type your reply below the text you are replying to.
      For more information, visit http://www.vim.org/maillist.php

      You received this message because you are subscribed to the Google Groups "vim_dev" group.
      To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscribe@....
      For more options, visit https://groups.google.com/groups/opt_out.
    • Show all 18 messages in this topic