I would like to open a file that already exists while already in Vim.
What is the command to do this?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
vim [your file]
If this isn't working for you, make sure you have it installed with:
sudo apt-get install vim
If you're already IN vim do
:edit [your file]
Additionally, to move back to the previous file after you finish editing the new file you can use
This will return you to the previous file