Vim's copy and paste (Re: [Techtalk] mgp2html revamp)

Malcolm Tredinnick malcolm at commsecure.com.au
Mon Feb 17 19:06:36 EST 2003


On Mon, Feb 17, 2003 at 04:28:13PM +1100, Jacinta Richardson wrote:
> On Mon, 17 Feb 2003, Mary wrote:
> > On Sun, Feb 16, 2003, Emma Jane Hogbin wrote:
> > > (ignore the fact that vi doesn't like copying and pasting from other
> > > documents...just look at the HTML formatting)
> > 
> > try:
> > 
> > :set nopaste
> > 
> > It turns off vim's autoindent function. It also turns off word wrap, so
> > you might want to
> > 
> > :set paste
> 
> I think that these are backwards.  Do :set paste befor cut'n'pasting into
> vi/vim and do :set nopaste afterwards if you need it.  If you use gvim it
> auto-detects quite well, unfortunately not all of us have X access to the
> machines we need to edit files on.  :(

By the way, there is also the pastetoggle setting in vim, which you set
to a key that can then be used to toggle paste mode on and off. I find
this pretty useful.

Malcolm

-- 
Always try to be modest and be proud of it!



More information about the Techtalk mailing list