[lug] vi/eclipse copy and paste indent issue
Sean Reifschneider
jafo at tummy.com
Thu Aug 27 12:49:15 MDT 2009
On 08/27/2009 11:34 AM, John Starkey wrote:
> Occasionally when copy-n-pasting my code from eclipse into a vi window
As mentioned, you probably want "set paste" and "set nopaste" to get around
this. I have the following in my vimrc:
let mapleader = ","
nmap <silent> <leader>p :set paste<CR>
nmap <silent> <leader>P :set nopaste<CR>
which allows me to do ",p" to go into paste mode and ",P" for nopaste.
Sean
--
Sean Reifschneider, Member of Technical Staff <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995: Ask me about High Availability
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20090827/47e5a7dc/attachment.pgp>
More information about the LUG
mailing list