How to use vim in Linux to create a file in a specific directory
In Linux, you can use the following command to create a file using vim in a specific directory:
- Open the terminal.
- Change the directory.
- change directory to /path/to/directory
- Edit the file named “filename” using vim.
- name of the file
- just can’t get enough of this beautiful scenery.
- Esc = Stop
- save and exit
Now you have successfully created a new file using vim in the specified directory.