Edit Multiple Files in Vim

  • warning: array_map() [function.array-map]: Argument #2 should be an array in /home/mlsamuel/public_html/modules/system/system.module on line 1015.
  • warning: array_keys() expects parameter 1 to be array, null given in /home/mlsamuel/public_html/includes/theme.inc on line 1817.
  • warning: Invalid argument supplied for foreach() in /home/mlsamuel/public_html/includes/theme.inc on line 1817.

vi one.txt two.txt three.txt
open Vim with one.txt, two.txt and three.txt queued

see files. current file will be in brackets ([ ])

advance to next file in the queue

rewind queue back to the first file

:e filename.php
edit filename.php in a new buffer

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options