Tuesday, October 5, 2010

Re: paste in vim creates stupid result

Hi,


On Tue, Oct 5, 2010 at 11:54, John Beckett <johnb.beckett@gmail.com> wrote:
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).

Removing ':set paste' does not solve this problem. Now I cannot paste text at all !!!

Maybe someone has an idea how to enable text-pasting using the middle button of the mouse and to paste it without having scrambled the text?
 
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.

I have shown you my fill content of my .vimrc. This is all is configured in vim. And I have absolutely no idea how to switch something on or off - I just want to use vim in the most possible user-friendly way (like I would use emacs for example).


Thanks
  Alex


 

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

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