Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to select the text in a log file (~900 lines) and paste it into a normal text file.

However, I am on my server via PuTTY so when I do :%y+ or gg"+yG it does not let me paste it.

By any chance is there a way to select text from Vi through PuTTY?

share|improve this question
There's probably a better way to do it: what is your criteria for selecting the text? I'm guessing sed is a better tool than vi. – glenn jackman Jun 7 '13 at 17:29
Are you running putty on windows? – parkydr Jun 7 '13 at 17:40
Are you using ssh to connect? – parkydr Jun 7 '13 at 18:06
putty on windows – ealeon Jun 7 '13 at 18:16
up vote 2 down vote accepted

If you have ssh access to the file, can you use SFTP to just download the log file?

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.