On Tuesday, June 12, 2012 9:56:24 AM UTC-5, Trey Sizemore wrote:
> 
> OK, I had recently added a line in my .vimrc (set paste) for pasting
> external contents into vim while maintaining formatting.  It worked
> great, but was hosing up the aforementioned pieces as editor for mutt.
>  Commenting out that line returned expected behavior.
> 
> So for pasting things into vim from now on, should I just invoke 'set
> paste' before pasting and leave the entry out of my .vimrc?
> 
> Thanks.

>From :help 'paste':


        When the 'paste' option is switched on (also when it was already on):
                - mapping in Insert mode and Command-line mode is disabled
                - abbreviations are disabled
                - 'textwidth' is set to 0
                - 'wrapmargin' is set to 0
                - 'autoindent' is reset
                - 'smartindent' is reset
                - 'softtabstop' is set to 0
                - 'revins' is reset
                - 'ruler' is reset
                - 'showmatch' is reset
                - 'formatoptions' is used like it is empty

Moral of the story: always read the :help on an option before you mess with its 
default setting.

'paste' in general, as you now suspect, is meant to be set only temporarily.

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

Reply via email to