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? – Feb 11 '20 at 14:51:nor:Nafter opening using:e file2and let me know if they work. – ng.newbie Feb 11 '20 at 14:54:e #works to go back to the last file. why:n??? please clarify, step by step, what you're trying to do. – Feb 11 '20 at 14:55: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 #– ng.newbie Feb 11 '20 at 14:57vim 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. – ng.newbie Feb 11 '20 at 14:59:nand:Nafter:e #. – Feb 11 '20 at 15:04Only One file to edit.– ng.newbie Feb 11 '20 at 15:06