On 26/12/11 04:14, Tony Mechelynck wrote:
On 25/12/11 18:27, Peng Yu wrote:
Hi,

<html>
<body></body>
</html>

If I paste the above code to vim (with command+p) on my mac, I get an
extra line on the bottom. It seems that vim tries to matches the tags
<html> and<body> without recognizing that they are already matched.

</body></html>

However, the gvim doesn't have the problem and it doesn't
automatically indent the text that I input at all. I think that the
difference must be in the compilation enabled options. But I can not
tell which one cause the problem. Could anybody take a look and let me
know if which option cause the problem?

/tmp$ vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Dec 22 2011 11:07:02)
MacOS X (unix) version
Included patches: 1-244, 246-353
Compiled by [email protected]
Normal version without GUI. Features included (+) or not (-):
[...]

Pasting within Vim (via some internal register, probably the default ""
register) or pasting from outside (via the clipboard)?

N.B. Compiled with +clipboard -X11 -xterm_clipboard

P.S. See also:
        :help 'paste'
        :help 'pastetoggle'

In gvim, these options are usually unneeded because gvim (or macvim which is a gvim "flavour") usually knows if you're pasting when running as a GUI.



Best regards,
Tony.
--
Q:  How many existentialists does it take to screw in a lightbulb?
A:  Two.  One to screw it in and one to observe how the lightbulb
    itself symbolizes a single incandescent beacon of subjective
    reality in a netherworld of endless absurdity reaching out toward a
    maudlin cosmos of nothingness.

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