You are not logged in.
hi, this is a really newbie question
i'm a dwm+vimperator+urxvt+vim user
i don't know how to copy selected text in firefox and paste it to vim
i yank (y) the text in the navigator and go to vim visual mode and press 'p' but nothing happen
in leafpad ,ie, text is copied.
Last edited by kismet010 (2010-02-08 05:50:37)
Offline
If you highlight text in firefox, then go to urxvt and press shift + insert, it will paste the text
Offline
try middle mouse click or shift+middle mouse, if you have mouse enabled in your xterrm and .vimrc
Offline
:set paste
pp/PP
Offline
Install gvim and use the * and + buffer. See :h quoteplus
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
you can copy from anywhere with control-c, and then paste to vim with
"+gP
as usual with vim, there are a 1000 ways to skin this cat.
Last edited by Cyrusm (2010-01-27 14:10:35)
Hofstadter's Law:
It always takes longer than you expect, even when you take into account Hofstadter's Law.
Offline
Install gvim and use the * and + buffer. See :h quoteplus
Just to be clear, you don't need to actually be using the gvim binary. You can use vim inside urxvt. But you do need to have vim built with the "--with-x=yes" flag, which if I remember right is done by the gvim package but not by the vim package. (I build vim myself, so I'm not entirely sure what the standard packages do.)
The shift-insert technique doesn't require any cooperation from vim, that just works through urxvt. There are multiple parallel clipboards in X nowadays, so it's easy to get confused. Again if I remember right, shift-insert in urxvt will insert whatever is _selected_ in other X windows. It matters not what you typed ctrl-C on in Firefox, if something else is selected in Firefox or another X window, that's what will be inserted.
The text is inserted as though it had been typed. So you'll want to first be sure that vim is insert mode, else the text will be interpreted as a bunch of commands. It helps also to do ":set paste" before inserting any complex text, and ":set nopaste" after.
The "*p technique also works good.
Offline
Yeah, if you want vim to work with X, you need to install gvim, which replaces the stripped down vim with one that supports yanking and deleting to the system buffers (*,+).
Offline
wow i forgot i wrote this post xD
thanks all
Offline
How to copy from rxvt-unicode to firefox?
Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch
Offline
How to copy from rxvt-unicode to firefox?
ls|xclip + shift+insert
Offline
Mark the text in urxvt with the mouse, middle click in FF (or shift-insert) to paste. This works in nearly all apps running in X.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Mark the text in urxvt with the mouse, middle click in FF (or shift-insert) to paste. This works in nearly all apps running in X.
shift+insert doesn't work in firefox as far as i can remember, middle click does though.
Offline