Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    You can also do :rew to get back to the first file. :e# swaps between 2 files. :n! goes to next file without writing. Also look at :set autowrite. Commented Jan 27, 2012 at 21:41
  • 5
    With respect to multiple buffers / windows / tabs also see StackOverflow's How to effectively work with multiple files in Vim? and Using Vim's tabs like buffers. Commented Feb 2, 2013 at 17:31
  • 2
    I found chapter 22 "Finding the file to edit" very useful as well. It goes over using the directory explorer to edit the files you want. Commented Feb 1, 2018 at 23:30
  • Consider linking to usr_07.txt: vimdoc.sourceforge.net/htmldoc/usr_07.html Commented Jun 13, 2019 at 13:48
  • @Kowh, also :wN is shorthand for write and open previous file 😀 Commented Sep 3, 2020 at 21:18