Vim help,editing multiple files
If i do vim file1.txt and file2.txt,only the file1.txt is displayed.
Then how can i switch from one file to another in vim? |
you could use:
Quote:
|
Quote:
|
Quote:
Code:
vim file1 file2 |
:n takes you to the next file
:e# toggles between two files :rew rewinds you to the first file Those are traditional vi commands; there are probably several other ways of doing it but those are the only ones I know and use. vi/vim are like that -- they have so many commands we tend to explore only as far as necessary to do the things we want to do, and miss out on many other goodies. |
Quote:
Code:
vi/vim are like that -- they have so many commands we tend to explore only as far as necessary to do the things we want to do, and miss out on many other goodies. |
All times are GMT -5. The time now is 05:18 AM. |