I have this in my .vimrc:

   "The first line sets a mapping so that pressing F2 in normal mode
   will invert the 'paste' option, and will then show the value of that
   option. The second line allows you to press F2 when in insert mode,
   to toggle 'paste' on and off. The third line enables displaying
   whether 'paste' is turned on in insert mode.
   nnoremap <F2> :set invpaste paste?<CR>
   set pastetoggle=<F2>
   set showmode

This was one thing that always bugged me in vim back when I was using it just for very simple file tweaks. The demise of KDevelop (usability) and my replacement of it with vim started when I figured out how easy vim was to tweak to fix this (and the wonderful windowing).

-d

PS I know I keep slamming KDev, but I'm still amazed and appalled at what happened to it.


On 04/12/2011 07:38 AM, Steve wrote:
Le 12-04-2011, à 13:01:50 +0200, Magnus Woldrich ([email protected]) a écrit :

So when copy pasting a long part of code, it's not very convenient. But
I'm sure there is a way to do that also with vim. Just didn't find it
yet. If you have any ideas, please share.
:set paste
:h paste
Brilliant! So simple.

apt-get purge nano


Thanks

Have a nice day,
Steve


--
David Ohlemacher
Senior Software Engineer
Scientific Solutions Inc.
99 Perimeter Rd Nashua New Hampshire 03063
603-880-3784

. o .
. . o
o o o

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to