parsed.org

Tips by tag: paste

Inserting a control character in vi(m) on Linux is a simple case of pressing Ctrl+V and then pressing your control character. Windows insists on pasting with a Ctrl+V, so you do the following:

test
controlgvimpastewindows
X Clipboard Manipulation by xinu on Dec 31, 2005 04:12 PM

You can use the xclip utility to manipulate the X clipboard from the commandline or from a script. This command will overwrite the current X clipboard selection with the contents of /etc/passwd so a subsequent paste will contain the text of the file:

$ xclip < /etc/passwd

Download source from http://people.debian.org/~kims/xclip/.

clipboardcopypastex11xclip
RSS