title: Indent or comment several text lines with vi
body: <p>can vim or vim be used to comment or indent at the same time a number of lines? For instance:</p>
  
  <pre><code>for item in Lista:
      ind = int(floor(1.0*(item-lmin)/width))
      if ind==nintervals:
          ind=ind-1
      print item,ind
  </code></pre>
  
  <p>comment it to:</p>
  
  <pre><code>#for item in Lista:
      #ind = int(floor(1.0*(item-lmin)/width))
      #if ind==nintervals:
          #ind=ind-1
      #print item,ind
  </code></pre>
  
  <p>or indent it to:</p>
  
  <pre><code>  for item in Lista:
        ind = int(floor(1.0*(item-lmin)/width))
        if ind==nintervals:
            ind=ind-1
        print item,ind
  </code></pre>
  
  <p>P.D. Is relevant the difference between VI and VIM?</p>