{"id":22019,"date":"2023-02-21T08:43:08","date_gmt":"2023-02-21T08:43:08","guid":{"rendered":"https:\/\/www.booksofall.com\/?post_type=product&#038;p=22019"},"modified":"2023-02-21T08:43:08","modified_gmt":"2023-02-21T08:43:08","slug":"vim-galore-all-things-vim","status":"publish","type":"product","link":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/","title":{"rendered":"Vim-Galore &#8211; All things Vim!"},"content":{"rendered":"<h2><b>What is Vim?\u00a0<\/b><\/h2>\n<p>Vim is a text editor with a long line of ancestors that goes back to qed. <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bram_Moolenaar\">Bram Moolenaar<\/a> released it in 1991.<\/p>\n<p>The project is hosted online at <a href=\"https:\/\/www.vim.org\/download.php\">vim.org<\/a>.<\/p>\n<p>Getting Vim: Use your favourite package manager or visit the download page from vim.org.<\/p>\n<p>Discussions and user questions are best done on the vim_use mailing list or using IRC (<a href=\"https:\/\/freenode.net\/view\/Main_Page\">Freenode<\/a>) in the #vim channel.<\/p>\n<p>Development happens on GitHub, discussions on the vim_dev mailing list.<\/p>\n<p>Read <a href=\"http:\/\/www.viemu.com\/a-why-vi-vim.html\">Why, oh WHY, do those #?@! nutheads use vi?<\/a> to see common misconceptions about Vim explained.<\/p>\n<h2><b>The Vim Philosophy\u00a0<\/b><\/h2>\n<p>Vim adheres to the modal editing philosophy. This means that it provides multiple modes and the meaning of keys changes according to the mode. You navigate files in\u00a0<i>normal mode<\/i>, you insert text in\u00a0<i>insert mode<\/i>, you select lines in\u00a0<i>visual mode<\/i>, you access commands in\u00a0<i>command-line mode<\/i> and so on. This might sound complicated at first, but has a huge advantage: you don&#8217;t have to break your fingers by holding several keys at once, most of the time you simply press them one after the other. The more common the task, the fewer keys are needed.<\/p>\n<p>A related concept that works well with modal editing are operators and motions.\u00a0<i>Operators<\/i> start a certain action, e.g. changing, removing, or selecting text. Afterwards you specify the region of text you want to act on using a\u00a0<i>motion<\/i>. To change everything between parentheses, use ci( (read <i>change inner parentheses<\/i>). To remove an entire paragraph of text, use dap (read\u00a0<i>delete around paragraph<\/i>).<\/p>\n<p>If you see advanced Vim users working, you&#8217;ll notice that they speak the <i>language of Vim<\/i> as well as pianists handle their instruments. Complex operations are done using only a few key presses. They don&#8217;t even think about it anymore as muscle memory took over already. This reduces cognitive load and helps to focus on the actual task.<\/p>\n<h2><b>First steps\u00a0<\/b><\/h2>\n<p>Vim comes bundled with an interactive tutorial that teaches the most basic things you need to know about. You can start it from the shell: Don&#8217;t be put off by how boring it looks like and work through the exercises.<\/p>\n<p>$ vimtutor<\/p>\n<p>The editors or IDEs you used before were most probably all non-modal, so working by switching modes will seem awkward at first, but the more you use Vim, the more it becomes <a href=\"https:\/\/en.wikipedia.org\/wiki\/Muscle_memory\">muscle memory<\/a>.<\/p>\n<p>Vim was bolted on <a href=\"https:\/\/en.wikipedia.org\/wiki\/Stevie_(text_editor)\">Stevie<\/a>, a vi clone, and supports two operating modes: &#8220;compatible&#8221; and &#8220;nocompatible&#8221;. Using Vim in compatible mode means using vi defaults for all options, opposed to Vim defaults. As long as you didn&#8217;t create a user vimrc yet or started Vim with vim -N , compatible mode is assumed! Don&#8217;t use Vim in compatible mode. Just don&#8217;t.<\/p>\n<p>Next steps:<\/p>\n<ol>\n<li>Create your own vimrc.<\/li>\n<li>Have some cheatsheets ready for the first weeks.<\/li>\n<li>Read through the basics section to learn what is even possible.<\/li>\n<li>Learn on demand! You never finish learning Vim. If you encounter any problems, just look for it on the internet. Your problem was solved already. Vim comes with great documentation and knowing how to navigate it is a must: Getting help offline.<\/li>\n<li>Have a look at the additional resources.<\/li>\n<\/ol>\n<p>One last advice: Please learn how to use Vim properly before starting to add all kinds of hyped plugins that only implement features that Vim already supports natively.<\/p>\n<h2><b>Minimal vimrc<\/b><\/h2>\n<p>The user vimrc can be put into ~\/.vimrc or for the sake of better separation into ~\/.vim\/vimrc . The latter makes it easy to put the entire configuration under version control and upload it to, let&#8217;s say GitHub.<\/p>\n<p>You find many &#8220;minimal vimrcs&#8221; all over the net, and maybe my version isn&#8217;t as minimal as it should be, but it provides a good set of sane settings that I deem to be useful for starting out.<\/p>\n<p>Eventually you have to read up on all the mentioned settings anyway and decide for yourself. \ud83d\ude42<\/p>\n<p>So here it is: <a href=\"https:\/\/github.com\/mhinz\/vim-galore\/blob\/master\/static\/minimal-vimrc.vim\">minimal-vimrc <\/a><\/p>\n<p>In case you&#8217;re interested, here&#8217;s my vimrc.<\/p>\n<p><b>TIP<\/b>: Most plugin authors maintain several plugins and also publish their vimrc on GitHub (often in a repository called &#8220;vim-config&#8221; or &#8220;dotfiles&#8221;), so whenever you find a plugin you like, look up its maintainer&#8217;s GitHub page and look through the repositories.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><iframe frameborder=\"0\" allowtransparency=\"true\" allowFullscreen=\"true\" style=\"width: 100%; height: 750px; border: none;\" src=\"https:\/\/online.visual-paradigm.com\/share\/book\/vim-galore-all-things-vim--19ii0ciowl?p=1\"><\/iframe><\/p>\n","protected":false},"featured_media":22028,"template":"","meta":{"_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!"},"product_brand":[],"product_cat":[351],"product_tag":[],"class_list":{"0":"post-22019","1":"product","2":"type-product","3":"status-publish","4":"has-post-thumbnail","6":"product_cat-ide-and-editors","8":"first","9":"instock","10":"shipping-taxable","11":"product-type-simple"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Vim-Galore - All things Vim! - BooksOfAll Portuguese<\/title>\n<meta name=\"description\" content=\"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/\" \/>\n<meta property=\"og:locale\" content=\"pt_PT\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vim-Galore - All things Vim! - BooksOfAll Portuguese\" \/>\n<meta property=\"og:description\" content=\"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/\" \/>\n<meta property=\"og:site_name\" content=\"BooksOfAll Portuguese\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\" \/><meta property=\"og:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"595\" \/>\n\t<meta property=\"og:image:height\" content=\"842\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\" \/>\n<meta name=\"twitter:label1\" content=\"Tempo estimado de leitura\" \/>\n\t<meta name=\"twitter:data1\" content=\"4 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/\",\"url\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/\",\"name\":\"Vim-Galore - All things Vim! - BooksOfAll Portuguese\",\"isPartOf\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\",\"datePublished\":\"2023-02-21T08:43:08+00:00\",\"description\":\"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!\",\"breadcrumb\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#breadcrumb\"},\"inLanguage\":\"pt-PT\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage\",\"url\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg\",\"width\":\"595\",\"height\":\"842\",\"caption\":\"Vim-Galore - All things Vim!\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.booksofall.com\/pt\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Categories\",\"item\":\"https:\/\/www.booksofall.com\/pt\/categories\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Vim-Galore &#8211; All things Vim!\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#website\",\"url\":\"https:\/\/www.booksofall.com\/pt\/\",\"name\":\"BooksOfAll Portuguese\",\"description\":\"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.\",\"publisher\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.booksofall.com\/pt\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"pt-PT\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#organization\",\"name\":\"BooksOfAll Portuguese\",\"url\":\"https:\/\/www.booksofall.com\/pt\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-PT\",\"@id\":\"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png\",\"contentUrl\":\"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png\",\"width\":166,\"height\":30,\"caption\":\"BooksOfAll Portuguese\"},\"image\":{\"@id\":\"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Vim-Galore - All things Vim! - BooksOfAll Portuguese","description":"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/","og_locale":"pt_PT","og_type":"article","og_title":"Vim-Galore - All things Vim! - BooksOfAll Portuguese","og_description":"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!","og_url":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/","og_site_name":"BooksOfAll Portuguese","og_image":[{"url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","type":"","width":"","height":""},{"width":595,"height":842,"url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_image":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","twitter_misc":{"Tempo estimado de leitura":"4 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/","url":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/","name":"Vim-Galore - All things Vim! - BooksOfAll Portuguese","isPartOf":{"@id":"https:\/\/www.booksofall.com\/pt\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage"},"image":{"@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage"},"thumbnailUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","datePublished":"2023-02-21T08:43:08+00:00","description":"Vim is a text editor released by Bram Moolenaar in 1991. There are different modes in Vim, which means that there are also different keys. Learn more here!","breadcrumb":{"@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#breadcrumb"},"inLanguage":"pt-PT","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/"]}]},{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#primaryimage","url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","contentUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2023\/02\/Vim-Galore-All-things-Vim.jpg","width":"595","height":"842","caption":"Vim-Galore - All things Vim!"},{"@type":"BreadcrumbList","@id":"https:\/\/www.booksofall.com\/pt\/vim-galore-all-things-vim\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.booksofall.com\/pt\/"},{"@type":"ListItem","position":2,"name":"Categories","item":"https:\/\/www.booksofall.com\/pt\/categories\/"},{"@type":"ListItem","position":3,"name":"Vim-Galore &#8211; All things Vim!"}]},{"@type":"WebSite","@id":"https:\/\/www.booksofall.com\/pt\/#website","url":"https:\/\/www.booksofall.com\/pt\/","name":"BooksOfAll Portuguese","description":"Biggest IT eBooks library and learning resources - Free eBooks for programming, computing, artificial intelligence and more.","publisher":{"@id":"https:\/\/www.booksofall.com\/pt\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.booksofall.com\/pt\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"pt-PT"},{"@type":"Organization","@id":"https:\/\/www.booksofall.com\/pt\/#organization","name":"BooksOfAll Portuguese","url":"https:\/\/www.booksofall.com\/pt\/","logo":{"@type":"ImageObject","inLanguage":"pt-PT","@id":"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/","url":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png","contentUrl":"https:\/\/www.booksofall.com\/pt\/wp-content\/uploads\/sites\/8\/2022\/06\/booksofall-logo-2.png","width":166,"height":30,"caption":"BooksOfAll Portuguese"},"image":{"@id":"https:\/\/www.booksofall.com\/pt\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product\/22019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product"}],"about":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/types\/product"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/media\/22028"}],"wp:attachment":[{"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/media?parent=22019"}],"wp:term":[{"taxonomy":"product_brand","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_brand?post=22019"},{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_cat?post=22019"},{"taxonomy":"product_tag","embeddable":true,"href":"https:\/\/www.booksofall.com\/pt\/wp-json\/wp\/v2\/product_tag?post=22019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}