Edit Multiple Files in VIM

Notes from video:

#
# Notes for my YouTube video => https://youtu.be/XTgNXp8PD3c
#

# Display Buffer List
:buffers
:ls

# open and edit another file w/in VIM
# AND append [FILENAME] to Buffer List
:edit [FILENAME] 

# Add [FILENAME] to the Buffer List from w/ in 
# a modified buffer
:badd [FILENAME]

# Navigating the buffer list
:bprevious
:bnext
:buffer [NUM] # jump directly to Buffer number [NUM]
:buffer! [NUM] # override warning and hide buffer

:pwd  # P(rint) W(orking) D(irectory)


# While in Normal Mode (aka Command Mode)
# Press "2", then "Control-g"
2 + Ctrl-g  
# Hit "Escape" key to enter Normal Mode

# Display Argument List
:args

# Navigate Argument List
:previous
:next

# Miscellaneous
:quit
:quit!
:write

You can also get the most current version of the above via git:

git clone https://gist.github.com/ec9f971671b0a493b9bbc4a92e7fdeb1.git vimBuffers
cd vimBuffers

Leave a comment