Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> try "+p or "* p to pull into the clipboard, try "+y or "* y

Very nice. I like xsel because it gives me more flexibility and uniformity (I can pipe it to/from whatever, and use it the same in the shell as in vim), but I'll probably wind up using the above for simple cases (especially if the xsel command I want isn't in my history for some reason).



I made a more detailed post below, but I would think an alias to something like vim -c s/^/\\=@\* (or @\+ I'm not sure which register you'd need to use) would be your best bet for fast editing: it should let you open vim with text from your clipboard already inserted on the first line.


You are right, piping with xsel is very cool.


you will need a vim with xclipboard though. (not on every server)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: