![]() To save changes press colon : and then wq! to save and quite the changes. Now, let’s add some html codes in it: Main Heading Goes Here To do that, run: sudo vim newdocument.html Let’s take an another example and create an another document with file name “ index.html” and add some HTML code in the file. ![]() For example: sudo vim name_of_the_document You can use vim command with sudo privilege to open an existing file. It will install vim and all the dependencies (vim-enhanced & vim-common). You need to press y to continue the installation. You need to run the command below to install Vim on CentOS: sudo yum install vim It is a high-level text editor suitable for editing Markup Languages.It can be accessed from both command line interface (CLI) and Graphical User Interface (GUI).It is a cross-platform editor which is available for Linux, Windows and Mac operating systems. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |