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

I have xclip installed (it copies/pastes from the X11 clipboard as a commandline utility), and having long had 'xc' and 'xp' shell scripts, finally added 'xpc' to paste from the 'CLIPBOARD' buffer after getting frustrated once too often that I wasn't able to do so.

I'll use these to "read in" files:

    xc < filename
And then in vim (faster than toggling paste mode):

    r ! xp
or

    r ! xpc  # for CLIPBOARD buffer


hm, why not just

    "+P

?


That doesn't seem to paste from the X11 primary clipboard buffer.

It's also a double pinky keystroke with a shift required (on QWERTY). Really awkward to type.

Try ':0r ! xp'

It does pretty much roll off your fingers.




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

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

Search: