How to create a new directory in vim on Linux?

In the vim editor on Linux, you cannot create a new directory directly. Vim is primarily used for editing file content, not for managing the file system.

To create a new directory in Linux, you can use command line tools like the mkdir command. Here is an example of the command to create a new directory:

mkdir 目录名

For example, to create a new directory named “test” in the current directory, you can use the following command:

mkdir test

Please note that this command is being executed in the command line, not in the vim editor.

Leave a Reply 0

Your email address will not be published. Required fields are marked *


广告
Closing in 10 seconds
bannerAds