I need to copy text from vim to web browser since I'm not able to use gedit as I'm opening an sql file. How do I get this done?
Tell me more
×
Ask Ubuntu is a question and answer site for
Ubuntu users and developers. It's 100% free, no registration required.
|
Either
|
|||||||||||
|
|
|||
|
|
|
Use "+y to yank the selected text to your Ctrl-V clipboard ("*y would be middle mouse button) |
|||
|
|
I would open the file in the browser using a file URL:
Not super elegant but it works. |
|||
|
|

shift+v, then press"+yto yank to the system clipboard. Vim's clipboard setting is currently the default, which for me isclipboard=autoselect,exclude:cons\|linux. This yanks to xclip, soxclip -oon the command line should show whatever was copied. Then simplyctrl+vinto the textbox. – chris.ritsen Sep 20 '12 at 13:57