On Wed, 24 Sep 2014 07:01:25 -0700 (PDT) Ben Fritz <[email protected]> wrote:
> On Wednesday, September 24, 2014 2:20:17 AM UTC-5, toothpik wrote: > > On Wed, Sep 24, 2014 at 09:30:22AM +0300, Gevisz wrote: > > > > > Sorry but your suggestion does not work as <C-R> does not insert > > > the deleted text back. > > > > <C-R> isn't what inserts the text -- <C-R>- is > > Correct, the full suggestion was: > > <C-C>ciW<C-R>-<C-]> > > Note the '-' after the <C-R>, to insert the contents of the '-' > register *as if typed*. > > I actually tested this in a mapping and saw it working, I wasn't sure > myself whether it would :-) > > Your suggestion using a paste doesn't work, because abbreviations > only expand on typed text, not on existing text. Yes, I have already got it. :) And, yes, your suggestion does work *on abbreviations*, at least on simple tests I made right now... However, it does not work on imaps that I use in the cases where the corresponding abbreviations never work. Even if I change inoremap to imap... Well, you may say: "It is not supposed to." And will be right. :( Sorry, for unintentionally mixing those two cases together... :( And, to separate them, I need a few more days to more carefully look what is going on when I work with all my abbreviations. Probably, solving the problem of never working abbreviations described (and discussed) in another thread will be enough (as in that case I will be able to change all my imaps to abbreviations). -- -- You received this message from the "vim_use" 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_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
