?

Log in

Previous Entry | Next Entry

VIM Tip of the day

Ok, here's a short one:

Why don't you use vimx instead of vim ? It is part of the vim-x11 package and starts gvim in terminal mode without the GUI.

It has one major advantage over vim: It has access to the X clipboard.

So if you have marked some text in your browser, you can access it in vimx with the special register '*'.
To test it, mark something in the browser or in another terminal and then switch to vimx and type :reg to list the contents of vim's registers. There should be one called "* with the marked text.

To use it, just yank it into your text as usual. Move the cursor to where the marked text needs to appear and then press
"*p
which means 'paste the contents of register * at the current cursor location'

Tested with KDE, if it doesn't work in Gnome, please let me know.

Comments

( 1 comment — Leave a comment )
Brad Watkins
Feb. 26th, 2014 02:07 pm (UTC)
Works on Xmonad
It works perfectly under xmonad, so I suspect it'll be fine under pretty much any other WM as well.
( 1 comment — Leave a comment )

Profile

karstenhopp
karstenhopp

Latest Month

January 2017
S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    
Powered by LiveJournal.com
Designed by Tiffany Chow