Tuesday, October 5, 2010

RE: paste in vim creates stupid result

Alexander Dietz wrote:
> but the result is as follows:
>
> # -----------------------------------------------------
> def external_call(command):
> """
> Makes an internal call to the shell (with the
> current set environment), wait for completion
> and returns the output and error of the command.
> @param command: command to be executed internally
> @return: a tuple (status, output, error)
> """
>
> which is not what I want! My .vimrc contains the following content:
>
> :set number
> :set paste
> :set mouse=a

Hmmm, you should not have ':set paste' in vimrc (you don't want
it active all the time). You are supposed to use 'pastetoggle'
and press the key you chose before doing a paste, as at:
http://vim.wikia.com/wiki/Toggle_auto-indenting_for_code_paste

I don't see how you would get that problem if 'paste' is set,
but perhaps something has switched it off (use ':set paste?') to
check current value.

John

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

Post a Comment