Thursday, November 8, 2012

Re: basic vim usage

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.17 (Darwin)
Comment: §auto-key-locate cert pka ldap hkp://keys.gnupg.net
Comment: GPGTools - http://gpgtools.org
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJQm7AFAAoJEKuJdOaOnmMJVJ0IALpbA0Chr4fF9XRVjLZWKLou
O0FBXNVF6y+6ZkXAYH90cmT/n+97gw1svuZKEnY9jBQ2S8EWFw7wZ863MwP78sP8
Y3OZ6H94DGq6EIvA8f5TUxvNdIk+GkEJaQcZDhXotYtMXkQb/y4Sh1Xp6BqHV3yL
Ucss4d0JHN8PRdpqqWz9wZ+U0D2z82igkda2wO+bJplwC3THGIOVlvlk983ApJm1
k8onUq5aSs9IGRQLUYyIbnp11tBoUYXkMw48GlEjwu0PgE2DRPMrdSRdl1JZmWSP
6eUw87rCjAt16nsrukPyDbIcit1h23unjrWVAipr9FPiXFnbKAJtZKqBUuWnIWE=
=rXIQ
-----END PGP SIGNATURE-----
Fredrik Andersson wrote:
>
>
> On Thu, Nov 8, 2012 at 1:37 PM, vicky b <vickyb2084@gmail.com
> <mailto:vickyb2084@gmail.com>> wrote:
>
> no i dont want to use GUI , i want to use vim not gvim how can
> copy and paste with ease in vim
>
>
> y for yank (copy)
> p for paste
>
> Use the * register to yank/paste to/from the system clipboard.
>
> This should be covered in the vimtutorial, run vimtutor if you have not
> done so yet.

Also, depending on which term you are using (this works in
gnome-terminal & konsole), you can select the text & then use
ctrl-shift-c to copy & ctrl-shift-p to paste if you get really stuck
and/or confused initially. And that works across all consoles you have
open, local & remote.

Cheers,

Phil...


> On Thu, Nov 8, 2012 at 6:05 PM, Karthick Gururaj
> <karthick.gururaj@gmail.com <mailto:karthick.gururaj@gmail.com>> wrote:
>
>
> On Thu, Nov 8, 2012 at 4:53 PM, vicky b <vickyb2084@gmail.com
> <mailto:vickyb2084@gmail.com>> wrote:
>
> I have started to learn vim in this modern enviroment where
> gui takes prefers , one thing that still me back to other
> editors is the ease with which we can copy and paste , can
> anybody help me out with safe effect in vim or any thing of
> that sort
>
> If you are using gvim, you have the option of clicking on "Edit"
> -> "Copy" and "Edit" -> "Paste". You need to select some text
> first obviously, before copy. Selection can be done with mouse.
> Using CTRL-C and CTRL-V might also work for copy/paste - whether
> it does work or not depends on a few factors.
>
> It that the answer you were looking for?
>
> Also, if GUI is what you want to work with, vim may not be worth
> looking at. Just my opinion.

--
But masters, remember that I am an ass.
Though it be not written down,
yet forget not that I am an ass.

Wm. Shakespeare - Much Ado About Nothing

No comments: