> if you want the text in your Vim buffer to remain unchanged. There may
> be a better way to do that that I'm not aware of though. See ":h filter"
> for info on the ! commands.
>
You can also write to arbitrary commands. This has the same effect as
a filter, but doesn't replace the original contents with the output of
the command. Use like so:
:w !xclip
This will write the entire file to xclip. Using
:.w !xclip
Will write the current line.
Note the space between 'w' and '!' - this is needed, otherwise a file
named xclip will be written instead of the selected region or file
being written to a pipe to xclip.
For more information, see ":h w_c"
Personally, though, if I want to yank something to the clipboard, I
use "+y or "*y .
HTH,
Matthew
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment