Hi, Alessandro Antonello wrote: > 2011/4/12 Spiros Bousbouras <[email protected]>: >> On Apr 10, 7:47 pm, Tim Chase <[email protected]> wrote: >>> On 04/10/2011 05:39 PM, Spiros Bousbouras wrote: >>> >>>> On Apr 9, 6:29 pm, Tim Chase <[email protected]> wrote: >>>>> On 04/09/2011 12:11 PM, Spiros Bousbouras wrote: >>>>>> How can you insert the output of an Ex command into the >>>>>> buffer at the place where the cursor is? >>> >>>>> 1) use :redir to a register and paste the register >>>>> contents: >>> >>>> Strange that there isn't a simpler method built-in. >>> > > I totally agree with you. Would be much more simpler if we could wrote > something like: > > :<echo 25*47 > > And the output was directly put in the current buffer in the cursor position. > The sequence "redir 'something'", type a command and then 'redir END' is > really to much to do when we need to be fast. To get the result of the > calculation above is much more easy just "see" the value in the command window > and write it by your hand in the buffer. > > This is a feature that a miss in Vim/GVim for quite sometime.
you can insert the output of every VimL expression with <C-R>=your-expression-goes-here<CR> while you are in insert mode. Your example would then be typed as <C-R>=25*47<CR> Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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
