On May 21, 2010, at 1:05 PM, Tim Chase wrote:
On 05/21/2010 05:29 AM, Roald de Vries wrote:
I frequently want to insert text without using mappings and
abbreviations. How can I do that?
While a mapping or abbreviation is the most common way to insert
text, you can also stash things in your named registers "a"-"z",
though you'd have to remember where you put each piece of content.
I do this occasionally, but my brain doesn't retain more than about
5 at a time, usually using a particular letter as a mnemonic.
I actually meant pasting into vim without mappings and abbreviations
being applied to the pasted text, so that e.g. pasting '<bla>' doesn't
result in '<bla></bla>' as it does now with my HTML-plugin.
Insert Mode:
^Rx " insert the text
^R^Rx " insert the text, even if it includes ctrl chars
This is useful. What I wanted was to insert text 'literally, not as if
typed' (as the doc says), as with ^R^R.
Another option that occurs to me is to record your insertions into a
macro for playback that inserts the desired text; but that burns a
register as well, can only be readily used in normal mode, and
doesn't really gain anything in my estimation.
- I want to copy snippets from an HTML page, and paste it into vim
So I'd copy the various snippets into named registers
Now if I only could get it into a register...
- using recording in normal mode doesn't seem to work, because the
recorded text is immediately executed
- using :let in ex-mode doesn't seem to work for multi-line text
Btw: MacVim pastes litterally in both insert-mode and normal mode.
Cheers, Roald
--
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