On Sat, May 24, 2014 at 12:02 AM, Nikolay Pavlov <[email protected]> wrote: > > On May 24, 2014 4:38 AM, "John Little" <[email protected]> wrote: >> >> On Saturday, May 24, 2014 12:21:27 AM UTC+12, ZyX wrote: >> > Digraphs work also in Ex mode. So I would rather use it, CTRL-\ e and >> > getcmdline() are your friends here: this way there are no or almost no >> > side-effects. At least I do not know any side-effects other then inevitable >> > things like heating the processor a bit. Example I used to test CTRL-K . . >> > expansion: >> > >> > >> > execute 'normal!' ":\<C-k>..\<C-\>eextend(g:, {'digraph': >> > getcmdline()}).digraph\n" >> > >> > This even did not alter cmd and expr history (it would if I typed >> > :normal! argument myself).
Thank you Nikolay and John! This is extremely useful. Justin M. Keyes -- -- 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.
