Open the file and set the line numbers as shown in Step 2. The same procedure can be used for uncommenting the lines in a file. Step 5: To save the changes type :w or :wq to save the file and exit. Comment out multiple lines at once in Vim editor The lines from 1 to 4 have been commented out. In this case, we are commenting out the lines from 1 to 4. Step 3: Then enter the following command: :1,4s/^/#
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |