Okay so I have already gone through this.
So I know you can edit multiple files in VIM if you open them up in the following way:
vim file1 file2 and you can change files using :n and :N.
But what if I wanted open up a new file using :edit and still use :n and :N.
So lets say we open a file in VIM using :
vim file1 and I am working on this file and I have to open up another file now called file2
Now :n and :N no longer work.
Why is that ?
I want to be able to use :n and :N after opening the file. Any way I can do that ?
Seems easy but I can't figure it out.
:e file2working?:nor:Nafter opening using:e file2and let me know if they work.:e #works to go back to the last file. why:n??? please clarify, step by step, what you're trying to do.:n. Why can't I use that ? Why can't I get the same consistent behaviour ? Why use a different command ? I don't want to use:e #vim file1and then try to edit another file. You edit it via:eas you said, BUT if you use:eyou can't use:nfor navigation. This does not make sense. That is what I am trying to do.