Tuesday, November 8, 2011

Re: what is vim's printf, as it is in c

From insert mode, you can type:

<C-R>=printf('%s', 'foo')

And upon hitting enter, "foo" will appear after the cursor in the
current buffer. Is that the sort of thing you're trying to do?

Note that "<C-R>" is a literal Ctrl-R in the above example.

--
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

No comments: