I am in xterm
on Pangolin, inside a tmux
session, in copy mode
. I am trying to copy the text of a man
page but what I yank into the clipboard by using the simple vi
bindings of spacebar/enter is text full full of whitespace which I can't just paste into vim
.
How can I view a
man
page as "plain text", perhaps even outside of theman
program?Alternatively, how can I use the
tmux
copy mode to properly copy the text as it appears on the screen so that CTRL+] pasting it elsewhere will be faithful to the formatting I intended to reproduce?
EDIT: I should mention that the command capture-pane
, followed by save-buffer
, works to save an entire buffer to a file. I am looking for something less of an overkill: simple copy mode, select and yank, paste somewhere else; for example: inside vim
.
man
directly? Is there a reason you need to go throughtmux
?man man > saved
. It usually works for me.:set paste
in vim before the paste?