title: Reading gnu-screen logs with vim
body: <p>Recently I've discovered a wonderful terminal multiplexing tool called gnu-screen.
  I'm satisfied with it completely. But I've encountered one inconvenience I'd like to improve.</p>
  
  <p>'C-a H' command makes screen log everything to a log file called named 'screenlog.*'.
  But encodes control characters in a weird way. For example if you open the log file with 'less' you might see some cryptic characters and the log file is unreadable. You have to run 'less -r' or 'less --raw-control-chars' which helps to encode those control characters correctly. </p>
  
  <p>So far so good. But if you want to edit the log or read it with vim then you encounter the same problem with control characters. </p>
  
  <p>I've googled this problem and looked up at SO but I've been overwhelmed because there's so much info about vim and screen. Unfortunately I haven't found the solution yet.</p>
  
  <p>Perhaps you know the solution for this problem or some workaround.</p>
  
  <p><strong>UPD</strong>
  Thanks to <a href="https://stackoverflow.com/users/464709/frederic-hamidi">Frédéric Hamidi's</a> comment I discovered those characters are the terminal escape sequences of font color, etc. Vim as an editor sees them and by default edits them. The plugin Frédéric suggested tells vim to interpret them.</p>