{"id":2599,"date":"2021-10-04T10:33:40","date_gmt":"2021-10-04T10:33:40","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2599"},"modified":"2021-10-04T10:33:40","modified_gmt":"2021-10-04T10:33:40","slug":"the-vim-command","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/the-vim-command\/","title":{"rendered":"The vim command"},"content":{"rendered":"<p>There are several Unix text editors out there, and that they all give specific utilities that may be helpful especially things. During this article, we have a tendency to teach you the fundamentals of the &#8220;<strong>vim<\/strong>&#8221; text editor, which, in our opinion, is that the most versatile and most easy. A good feature of the &#8220;<strong>vim<\/strong>&#8221; command-line tool is that it acknowledges totally different programming languages and syntaxes, enabling it to color in the various blocks in your code, like functions, methods, or variables. While not as established as a language-specific <strong>IDE<\/strong>, it will come in handy if you required to create a fast alteration to your code. Type the the command as below, To edit a file using the &#8220;<strong>vim<\/strong>&#8221; text editor :<\/p>\n<pre><strong>vim &lt;file&gt;<\/strong><\/pre>\n<p>Using the &#8220;vim&#8221; command is going to open the file immediately.<\/p>\n<p>To change looking among the file you opened victimisation the &#8220;<strong>vim<\/strong>&#8221; command-line tool, please press the slash (<strong>\/<\/strong>) button. At the bottom left aspect of the screen, you&#8217;re progressing to notice this &#8220;<strong>slash<\/strong>&#8221; showing. You&#8217;ll be able to begin writing the string, integer, or the precise excerpt of code you wish. once you area unit done, press the &#8220;<strong>ENTER<\/strong>&#8221; button, and &#8220;vim&#8221; goes to require you to the primary match. If there are a lot of matches within the file, you&#8217;ll be able to press the &#8220;n&#8221; button, that goes to take you to ensuing prevalence. To change the &#8220;<strong>editor<\/strong>&#8221; mode, please press the &#8220;i&#8221; button, that stands for &#8220;<strong>insert<\/strong>&#8220;. You&#8217;ll navigate through the file using the <strong>up, down, left, right<\/strong> arrow keys on your keyboard. Once you are done performing the changes, please press the &#8220;<strong>ESC<\/strong>&#8221; button on your keyboard, which is able to disable this mode. Please type the &#8220;:wq!&#8221; combination, To save the changes. If you&#8217;ve got made an error and you want to discard the changes, please type &#8220;:q!&#8221; instead.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are several Unix text editors out there, and that they all give specific utilities that may be helpful especially things. During this article, we have a tendency to teach you the fundamentals of the &#8220;vim&#8221; text editor, which, in our opinion, is that the most versatile and most easy. A good feature of the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-2599","post","type-post","status-publish","format-standard","hentry","category-tutorials"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>The vim command - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"The vim command - OWS KB\" \/>\n<meta property=\"og:description\" content=\"There are several Unix text editors out there, and that they all give specific utilities that may be helpful especially things. During this article, we have a tendency to teach you the fundamentals of the &#8220;vim&#8221; text editor, which, in our opinion, is that the most versatile and most easy. A good feature of the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-04T10:33:40+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"1 minute\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\",\"name\":\"The vim command - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-10-04T10:33:40+00:00\",\"dateModified\":\"2021-10-04T10:33:40+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/the-vim-command\/\",\"name\":\"The vim command\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=2599"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2599\/revisions"}],"predecessor-version":[{"id":2600,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2599\/revisions\/2600"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2599"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2599"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}