{"id":180947,"date":"2024-03-18T20:29:19","date_gmt":"2024-03-18T19:29:19","guid":{"rendered":"https:\/\/liora.io\/en\/?p=180947"},"modified":"2026-02-12T15:04:04","modified_gmt":"2026-02-12T14:04:04","slug":"vim-the-comprehensive-guide-to-this-text-editor","status":"publish","type":"post","link":"https:\/\/liora.io\/en\/vim-the-comprehensive-guide-to-this-text-editor","title":{"rendered":"Vim: The Comprehensive Guide to This Text Editor"},"content":{"rendered":"\n<p>\n.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]&gt;a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px}<\/p>\n\n\n\n<p><strong>While developers can create highly innovative applications and software, the vast majority of their work consists of editing text files. These communicate instructions to the machines responsible for executing the code.<\/strong><\/p>\n\n\n\n<p>In this context, <a href=\"https:\/\/liora.io\/en\/data-strategist-everything-you-need-to-know-about-this-data-profession\">developers need to use tools that make it easier to enter code<\/a>. These are known as text editors. The simpler and more efficient they are to use, the easier it is for designers and developers. This is precisely the aim of Vim, a highly configurable and customisable text editor. Find out everything you need to know about this programme.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-is-vim\">What is Vim?<\/h2>\n\n\n\n<p>Vim is a highly configurable text editor available on all Unix systems, but it is also available on MS-Windows (7, 8, 10, 11), macOS, Ha\u00efku and VMS. It is an enhanced version of <strong>UNIX\/VI developed in 1991 by Bram Moolenaar.<\/strong> In fact, the term Vim comes from Vi IMproved. And even today, it continues to improve thanks to the addition of new, ever more powerful features.<\/p>\n\n\n\n<p>The aim of all these features is to make it easier to create and modify any type of text. Although Vim is often referred to as &#8220;the developer&#8217;s editor&#8221;, it is not just used for programming software and applications. In fact, this tool can be used for all types of text editing (such as writing e-mails or editing configuration files).<\/p>\n\n\n\n<p>Vim can also be used by data experts. It enables them to sort and correct databases containing thousands of heterogeneous lines.<\/p>\n\n\n\n<p>&nbsp;<\/p>\n\n\n\n<p>Related articles:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><td><a href=\"https:\/\/liora.io\/en\/become-a-devops-engineer-tasks-and-skills\" target=\"_blank\" rel=\"noopener\">Become a DevOps Engineer: Tasks and skills<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/liora.io\/en\/what-are-the-benefits-of-devops\" target=\"_blank\" rel=\"noopener\">What are the benefits of DevOps?<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/liora.io\/en\/datadog-the-monitoring-solution-for-devops-teams\" target=\"_blank\" rel=\"noopener\">Datadog: The monitoring solution for DevOps teams<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/liora.io\/en\/devsecops-how-does-it-differ-from-devops\" target=\"_blank\" rel=\"noopener\">DevSecOps: How does it differ from DevOps?<\/a><\/td><\/tr><tr><td><a href=\"https:\/\/liora.io\/en\/devops-engineer-salary-a-comprehensive-guide-to-earnings-in-the-dynamic-tech-landscape\" target=\"_blank\" rel=\"noopener\">DevOps Engineer Salary: A Comprehensive Guide to Earnings in the Dynamic Tech Landscape<\/a><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<div style=\"height:1px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong>Good to know:<\/strong> Vim is a modal editor. This means that it works differently depending on the mode you select. Depending on the operations you perform, you can switch from one mode to another. While this modal function increases the range of possibilities with <strong>Vim tenfold, it also makes the software more complex to use.<\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-are-the-different-vim-modes\">What are the different Vim modes?<\/h2>\n\n\n\n<p>As we saw earlier, Vim uses different modes to work. This is not necessarily the case with the vast majority of text editors, most of which operate in a single mode.<\/p>\n\n\n\n<p>So what are Vim&#8217;s different modes and how do they work? Here&#8217;s an overview.<br>.elementor-widget-image{text-align:center}.elementor-widget-image a{display:inline-block}.elementor-widget-image a img[src$=&#8221;.svg&#8221;]{width:48px}.elementor-widget-image img{vertical-align:middle;display:inline-block}<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/liora.io\/app\/uploads\/2023\/05\/vim-editeur-text-datascientest1.png\" alt=\"\" title=\"\" \/><\/figure>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/cloud-dev\/\">Learn how to develop applications on Vim<\/a><\/div>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"editing-inserting-and-replacing\">Editing, inserting and replacing<\/h3>\n\n\n\n<p>Here, each character is inserted into the file below the cursor. When you switch to this insertion mode, you have no menu, no copy-paste, no file. Just a text field.<\/p>\n\n\n\n<p><strong>Good to know:<\/strong> this is not the default mode. If you want to work in insert mode, you need to type different character strings from command mode. For example: &#8220;a&#8221; allows you to move after the cursor, &#8220;i&#8221; under the cursor, etc.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"commande\">Commande<\/h3>\n\n\n\n<p>This mode is used as soon as the Vim interface is launched. Logically, this is the mode most often used by developers. In fact, its operation is more like that of other text editors.<\/p>\n\n\n\n<p>If there is only one command mode, you can use either Vim commands or Ex commands.<\/p>\n\n\n\n<p>Here are some examples of Vim commands:<\/p>\n\n\n\n<p>c = change text<br>cc = change the whole line<br>d = delete text<br>y = copy text, etc<\/p>\n\n\n\n<p><strong>Good to know:<\/strong> here, you don&#8217;t know what you&#8217;re typing. To get visual feedback, you need to type &#8220;:set showcmd&#8221;.<\/p>\n\n\n\n<p>Conversely, Ex commands give you maximum transparency. Here are a few examples:<\/p>\n\n\n\n<p>:e = edit a file<br>:w = save a file<br>:q = exit the window<br>:bprevious = display previously opened files.<\/p>\n\n\n\n<p>Some commands can be found in both Vim and Ex.<\/p>\n\n\n<h3 class=\"wp-block-heading\" id=\"visual\">Visual<\/h3>\n\n\n\n<p>This allows you to make selections throughout your text file (a bit like using the mouse). You can also use certain move commands to make selections.<\/p>\n\n\n\n<p>For example, :<\/p>\n\n\n\n<p>v25g: this moves you to the beginning of line 25<br>o: moves you from one end of the selection to the other.<\/p>\n\n\n\n<p>Good to know: if you are in command mode, you can switch to visual mode by pressing the v key.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"what-are-the-advantages-of-vim\">What are the advantages of Vim?<\/h2>\n\n\n\n<p>At first glance, the Vim text editor may seem a little austere. And yet it is one of the preferred tools of developers. There are several reasons for this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Its power:<\/strong> Vim users benefit from powerful search and replace functions<\/li>\n\n\n\n<li><strong>Its features:<\/strong> for example, automatic completion, file comparison, advanced searches, command line history, online help, spell checking, block operations, scripting language, etc.<\/li>\n\n\n\n<li><strong>Customisation:<\/strong> to make it easier to create and modify software and applications, Vim offers users a wide variety of extensions.<\/li>\n\n\n\n<li><strong>Adaptability<\/strong>: Vim supports hundreds of programming languages and file formats. It also integrates with a wide range of tools.<\/li>\n\n\n\n<li><strong>Continuous improvement:<\/strong> Vim is continually developed to offer users even more features to meet their needs.<\/li>\n<\/ul>\n\n\n\n<p>If you&#8217;d like to find out more about the features and use of Vim, don&#8217;t hesitate to join our training courses at Liora.<\/p>\n\n\n<h2 class=\"wp-block-heading\" id=\"key-facts\">Key facts:<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Vim is a highly customisable text editor.<br>It works in several modes to perform a variety of tasks.<\/li>\n\n\n\n<li>The most common is command mode, which lets you open a file, save data, copy and paste text, and so on.<\/li>\n\n\n\n<li>To find out more about how Vim works, join Liora.<\/li>\n<\/ul>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex is-content-justification-center\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link wp-element-button\" href=\"https:\/\/liora.io\/en\/courses\/cloud-dev\/devops-engineer\">Find out more about our DevOps training<\/a><\/div>\n<\/div>\n\n\n\n<script type=\"application\/ld+json\">\n{\n  \"@context\": \"https:\/\/schema.org\",\n  \"@type\": \"FAQPage\",\n  \"mainEntity\": [\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What is Vim?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Vim is a highly configurable text editor available on various operating systems, including Unix, MS-Windows, macOS, Haiku, and VMS. It is an enhanced version of the UNIX\/VI editor, developed in 1991 by Bram Moolenaar.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What makes Vim different from other text editors?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Vim is a modal text editor, meaning it works differently depending on the mode you're in. This allows for more efficient editing, but can also make it more complex to use compared to single-mode editors.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What are the different modes in Vim?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Vim has several modes including Command mode, where you input commands to manipulate text, Insert mode, for inserting text, and Visual mode, which is used for selecting text. Each mode serves a distinct function to enhance text editing efficiency.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"What are some common Vim commands?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"Some common Vim commands include 'c' to change text, 'cc' to change an entire line, 'd' to delete text, and 'y' to copy text. There are also Ex commands like ':e' to edit a file, ':w' to save, and ':q' to quit.\"\n      }\n    },\n    {\n      \"@type\": \"Question\",\n      \"name\": \"Who can use Vim?\",\n      \"acceptedAnswer\": {\n        \"@type\": \"Answer\",\n        \"text\": \"While Vim is often associated with developers, it is not limited to programming. Vim can also be used for general text editing, email writing, or even database management due to its versatile features.\"\n      }\n    }\n  ]\n}\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>.elementor-heading-title{padding:0;margin:0;line-height:1}.elementor-widget-heading .elementor-heading-title[class*=elementor-size-]&gt;a{color:inherit;font-size:inherit;line-height:inherit}.elementor-widget-heading .elementor-heading-title.elementor-size-small{font-size:15px}.elementor-widget-heading .elementor-heading-title.elementor-size-medium{font-size:19px}.elementor-widget-heading .elementor-heading-title.elementor-size-large{font-size:29px}.elementor-widget-heading .elementor-heading-title.elementor-size-xl{font-size:39px}.elementor-widget-heading .elementor-heading-title.elementor-size-xxl{font-size:59px} While developers can create highly innovative applications and software, the vast majority of their work consists of editing text files. These communicate instructions to the machines responsible for executing the code. In this context, developers need to use tools that make it easier to enter code. These are [&hellip;]<\/p>\n","protected":false},"author":82,"featured_media":180948,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"editor_notices":[],"footnotes":""},"categories":[2434],"class_list":["post-180947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud-dev"],"acf":[],"_links":{"self":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/180947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/users\/82"}],"replies":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/comments?post=180947"}],"version-history":[{"count":2,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/180947\/revisions"}],"predecessor-version":[{"id":206666,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/posts\/180947\/revisions\/206666"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media\/180948"}],"wp:attachment":[{"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/media?parent=180947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/liora.io\/en\/wp-json\/wp\/v2\/categories?post=180947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}