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

Gina Lanik geekgrrl at geekgrrl.priv.at
Mon Feb 17 10:17:11 EST 2003


On Mon, Feb 17, 2003 at 06:06:36PM +1100, Malcolm Tredinnick wrote:
> 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.

What helps me most when pasting code is :set (no)ai to turn only
auto-indenting on/off...

Cheers,

Gina
-- 
You can believe anything you want. The universe is not obliged to keep
a straight face.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://linuxchix.org/pipermail/techtalk/attachments/20030217/fbe3fe36/attachment.pgp


More information about the Techtalk mailing list