Create new file in Vim's file explorer
If you want to create a new file when you are viewing Vim's file explorer (netrw), simply hit the %
. Vim will ask you for a file name, create that file in the currently viewed directory and open a buffer.
If you want to create a new file when you are viewing Vim's file explorer (netrw), simply hit the %
. Vim will ask you for a file name, create that file in the currently viewed directory and open a buffer.