On 2010-05-21, Roald de Vries wrote:
> Hi all,
>
> I frequently want to insert text without using mappings and
> abbreviations. How can I do that?
>
> The scenario:
> - I have the mapping 'inoremap <CR> <Esc>' (not trying to start a
> discussion about that), and for HTML I use a plugin that automatically
> inserts closing tags.
> - I want to copy snippets from an HTML page, and paste it into vim
>
> I hope someone can help me out. Thanks in advance.
One way to do that is to execute
:set paste
before pasting and
:set nopaste
after. That will turn off Vim's formatting and interpretation of
special sequences such as abbreviations while the text is being
pasted. See
:help 'paste'
:help 'pastetoggle'
That said, if you're using gvim or vim in a terminal and both are
properly configured, pasting with a mouse should "just work". Vim
detects that you are pasting and automatically sets 'paste' for the
duration of the paste operation. See
:help 'mouse'
Regards,
Gary
--
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