Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: pasting into vim [Was: Re: question about vim]

From: Johann Spies <jspies(at)sun.ac.za>
Date: Thu Feb 21 2008 - 03:13:30 EST


On Thu, Feb 21, 2008 at 10:02:14AM +0200, Andrei Popescu wrote:
> On Thu, Feb 21, 2008 at 06:36:51PM +1100, Alex Samad wrote:
>
> > yeah I like the filetype stuff as well, I just hate when I do cut and
> > paste and with comments, everything gets askew, so some files I want it
> > off by default
>
> I'm sure there is a solution for this, I just couldn't find it myself.
> (I'm guessing you are talking about pasting already indented text which
> gets indented again by vim). AFAIK you need to 'set paste'. Use
> 'pastetoggle' to set a keybinding for it (read 'help paste' for why it
> won't work with normal keybindings).

I use this and it is working well:

:r !cat <enter>

[ paste whatever you want to paste ]

Cntl-D

Regards
Johann

-- 
Johann Spies          Telefoon: 021-808 4036
Informasietegnologie, Universiteit van Stellenbosch

     "My sheep hear my voice, and I know them, and they 
      follow me: And I give unto them eternal life; and they
      shall never perish, neither shall any man pluck them 
      out of my hand."          John 10:27,28 


-- 
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Feb 21 03:14:05 2008

This archive was generated by hypermail 2.1.8 : Wed Mar 19 2008 - 02:23:58 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library