Leaving "paste" on turns stuff auto formating things off.  Below is the help output 
from the VIM 
command ":help paste"


                                                *'paste'* *'nopaste'*
'paste'                 boolean (default off)
                        global
                        {not in Vi}
        Put Vim in Paste mode.  This is useful if you want to cut or copy
        some text from one window and paste it in Vim.  This will avoid
        unexpected effects.
        Setting this option is useful when using Vim in a terminal, where Vim
        cannot distinguish between typed text and pasted text.  In the GUI, Vim
        knows about pasting and will mostly do the right thing without 'paste'
        being set.  Also in a terminal where Vim handles the mouse clicks
        itself.
        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
                - 'cindent' is reset
                - 'softtabstop' is set to 0
                - 'lisp' is reset
                - 'revins' is reset
                - 'ruler' is reset
                - 'showmatch' is reset
                - 'formatoptions' is used like it is empty
        NOTE: When you start editing another file while the 'paste' option is
        on, settings from the modelines or autocommands may change the
        settings again, causing trouble when pasting text.  You might want to
        set the 'paste' option again.
        When the 'paste' option is reset the mentioned options are restored to
        the value before the moment 'paste' was switched from off to on.
        Resetting 'paste' before ever setting it does not have any effect.
        Since mapping doesn't work while 'paste' is active, you need to use
        the 'pastetoggle' option to toggle the 'paste' option with some key.

From:                   "Michael Rayle" <[EMAIL PROTECTED]>
To:                     "'John R Larsen'" <[EMAIL PROTECTED]>
Copies to:              <[EMAIL PROTECTED]>
Subject:                RE: cut/paste and mouse scrolling - Update
Date sent:              Wed, 1 Sep 2004 10:50:52 -0500

Wonderful!!!

That is exactly the trick that I was looking for...

BTW, (I know it is now a meta-discussion...) what is the disadvantage to
leaving VIM in ":set paste"?

Thanks!!!


-----Original Message-----
From: John R Larsen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, September 01, 2004 10:42 AM
To: Michael Rayle
Cc: [EMAIL PROTECTED]
Subject: Re: cut/paste and mouse scrolling - Update

VI on Linux is really VIM.  In VIM if you use the command ":set paste" just
before you paste in text 
from the paste buffer, then the text won't be tabbed incrementally.  It gets
pasted the way you expect 
it to be.  Once you're done with the paste then use the command ":set
nopaste" to return to normal 
VIM operation.  I was frustrated by this same behavior for a very long time
before I finally stumbled 
across the ":set paste" option.


From:                   "Michael Rayle" <[EMAIL PROTECTED]>
To:                     <[EMAIL PROTECTED]>
Subject:                cut/paste and mouse scrolling - Update
Date sent:              Wed, 1 Sep 2004 09:44:00 -0500

[ Double-click this line for list subscription options ] 

All,

 

In my previous post, I mentioned that I cannot mouse scroll with the realVNC
viewer.

I realized that I was using the 3.3.3 version of the viewer and tried the
4.0 version

 

With RealVNC 4.0, I can use the mouse scroller.  That's great!

 

I do have a problem that has stuck around and I hope that someone help
enlighten me on a solution..

 

When performing a copy/paste from Windows client to Linux server, the
operation that I normally perform is:

1.      mouse select text in Windows
2.      press ctrl-c
3.      switch to VNC window
4.      open text file with VI
5.      go to insert mode
6.      press middle mouse button (scroll wheel)

 

When VI is running in gnome-terminal, the text is not inserted.

When VI is running in xterm, the text is inserted, BUT each line is indented
by an incrementing number of tabs

If the insert is performed into Xemacs, the text is inserted properly.

 

I _really_ want to use VI in most cases to insert text from Windows.

Is there a configuration option that makes it so that the extra tabs don't
get inserted???

 

Thanks!!!

Mike
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list
________________________________________________________
John R. Larsen <[EMAIL PROTECTED]>
http://larsen-family.us
________________________________________________________
John R. Larsen <[EMAIL PROTECTED]>
http://larsen-family.us
_______________________________________________
VNC-List mailing list
[EMAIL PROTECTED]
To remove yourself from the list visit:
http://www.realvnc.com/mailman/listinfo/vnc-list

Reply via email to