title: how to record both command and input mode keystrokes
body: <p>Im trying to learn how to use the record ability of vim, but it seems as if I can only record and play keystrokes from the normal mode session. When I switch over to input mode the keystrokes I make does not seem to be recorded or does not play up when I play the recording.
  To illustrate what Im talking about:</p>
  
  <p>I have an file with these rows:</p>
  
  <pre><code>Dir['*.data']        # Files with the "data" extension
  Dir['?']             # Any single-character filename
  Dir['*.[ch]']        # Any file that ends with .c or .h
  Dir['*.{java,rb}']   # Any file that ends with .java or .rb
  </code></pre>
  
  <p>And I want to move the comments at the end of each line 4 tabs further to the right. So I put the cursor on the beginning of the first row and I start recording to register a: <code>qa</code>, then I type <code>f#</code> to find the comment on line, and then switch over to insert mode <code>i</code> and type <code>&lt;Tab&gt;&lt;Tab&gt;&lt;Tab&gt;&lt;Tab&gt;</code> switch over to normal mode again <code>esc</code> and move down to the beginning of the next line and stop the recording <code>q</code>. When I play up the recording <code>@a</code> only the cursor moves down but none of the input keystrokes plays up?</p>