title: VI replace or remove the first character from line to line
body: <p>In vi, how to replace or remove the first character from line to line if it is the specified character <code>#</code>.</p>
  
  <pre><code>line 1
  ...
  ...
  # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
  #
  #location ~ \.php$ {
  #   fastcgi_split_path_info ^(.+\.php)(/.+)$;
  #   # NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
  #
  #   # With php5-cgi alone:
  #   fastcgi_pass 127.0.0.1:9000;
  #   # With php5-fpm:
  #   fastcgi_pass unix:/var/run/php5-fpm.sock;
  #   fastcgi_index index.php;
  #   include fastcgi_params;
  #}
  ...
  end of line
  </code></pre>