![]() Or relative path can be used like below where the current directory is /home. For an absolute path, the following command can be used. This path information can be an absolute or relative path according to the current working directory. $ vim sample.txtīut if the file is located other than the current directory we should provide the path of the file too. ![]() In the following example, we will open the file named sample.txt. ![]() The file name is provided to the vim command. If you are using Windows you will use the MS-DOS command-line tool. The most popular use case for opening files is using the command line which is generally a bash terminal. In this tutorial, we will examine how to open single or multiple files with Vim. In order to work with Vim or Vi, we should open the file or multiple files. Vim or Vi generally used to work with text files from the command line. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |