{"id":20414,"date":"2016-10-14T07:47:32","date_gmt":"2016-10-14T12:47:32","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=20414"},"modified":"2022-12-05T06:55:22","modified_gmt":"2022-12-05T12:55:22","slug":"vim-tips-and-tricks","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/","title":{"rendered":"Vim Tips and Tricks"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div><p><img decoding=\"async\" class=\"alignnone size-full wp-image-26385\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg\" alt=\"VIM Tips and Tricks\" width=\"1200\" height=\"600\" \/><\/p>\n<p>Today we will show you several Vim Tips and Tricks. The most common file editor in Linux is Vim. That&#8217;s right, you can like it or hate it, but it doesn&#8217;t matter. It can be found in every Linux, that is out there. Even if there is no other editor installed in the system, you can still use it in its most basic form, Vi, the program which is its predecessor, written by Bill Joy in 1970 for the UNIX operating systems. Vi and Vim are similar in many ways, with the exception that Vim (VI IMproved) was later developed and adjusted to the more modern Linux systems.<\/p>\n<p>People often ignore Vim and find it frustrating. Most of them, know only how to exit from it, :q!. Those of you that know little about Vim is that when you open a text file you can edit it with <code>:i<\/code>, and save it with <code>:w<\/code> or <code>:wq<\/code> (write to file and exit) or <code>:wq!<\/code> (! stands for do not prompt for confirmation). One other very common command is just `<code>o<\/code>` without a colon and when in COMMAND MODE which automatically puts you in INSERT mode and into a new line for writing. <!--more--><\/p>\n<h2>Vim Tips\u00a0<img decoding=\"async\" class=\"alignright size-full wp-image-26387\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips.jpg\" alt=\"Vim Tips\" width=\"300\" height=\"67\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-150x34.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-200x45.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-50x11.jpg 50w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/h2>\n<h3>When you edit a file without sudo<\/h3>\n<p>If you happen to edit a file without sudo, you will get a permission error while trying to save the file. So you have to save it in another file and then make the changes again. However, the command:<br \/>\n<code>:w !sudo tee % <\/code><br \/>\nWill save the file without the need to do all of that. Of course, you still need to be a sudo user to use that command.<\/p>\n<h3>Travel back in time<\/h3>\n<p>Revert the document back into a specific point in time. In its most simple form just &#8216;u&#8217; in COMMAND MODE will undo the last change, or CTRL-R will redo the changes.<br \/>\nHowever: <code>:earlier 15m<\/code> will revert the document to how it was 15 minutes ago. The same command can take different variables for time, like <code>:earlier 5m<\/code>. You can revert the changes with its opposite command <code>:later<\/code>.<\/p>\n<h3>Execute any command<\/h3>\n<p>Execute any command on the shell with:<br \/>\n<code>:!&lt;command&gt;<\/code><\/p>\n<p><strong>Example:<\/strong><br \/>\n<code>:!ls -l<\/code><br \/>\nWill minimize the Vim editor and put you into the shell with the output of the <code>ls<\/code> command.<br \/>\nHowever <code>:.!&lt;command&gt;<\/code> (with the dot(.) before the !) will execute the command and paste the output into the current window.<\/p>\n<p><strong>Real life example:<\/strong><br \/>\n<code>:.!date<\/code> And you will get the current date pasted into your document.<\/p>\n<h3>Vim can also act like a hex editor:<\/h3>\n<p><code>:%!xxd<\/code><\/p>\n<p>Revert it back with <code>:%!xxd -r<\/code><\/p>\n<h3>Several useful delete examples\u00a0<img decoding=\"async\" class=\"alignright size-full wp-image-26388\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tricks.jpg\" alt=\"vim tricks\" width=\"300\" height=\"67\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tricks.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tricks-150x34.jpg 150w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tricks-200x45.jpg 200w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tricks-50x11.jpg 50w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/h3>\n<ul>\n<li><code>diw<\/code> to delete the current word and <code>ciw<\/code> to cut the current word.<\/li>\n<li><code>de<\/code> is like <code>diw<\/code>, however it opens the opportunity to delete every next word just by pressing dot(<code>.<\/code>).<\/li>\n<li><code>di(<\/code> delete within the current parents.<\/li>\n<li><code>di\"<\/code> to delete the text between the quotes.<\/li>\n<li><code>dab<\/code> delete around brackets.<\/li>\n<li><code>daB<\/code> delete around curly brackets.<\/li>\n<\/ul>\n<h3>Several useful cut examples<\/h3>\n<ul>\n<li><code>ciw<\/code> to cut the current word.<\/li>\n<li><code>ci\"<\/code> cut the word inside the quotes.<\/li>\n<li><code>ci(<\/code> cut the word in the parents.<\/li>\n<li><code>C<\/code> cut the rest of the line and enter INSERT MODE. This is very useful for cut and paste.<\/li>\n<\/ul>\n<h3>Miscellaneous useful commands<\/h3>\n<ul>\n<li><code>zz<\/code> Scroll down the screen to make the current line appear in the middle. Very useful to put some chunk of code in focus.<\/li>\n<li><code>%<\/code> finds and moves the cursor to the matching parentheses.<\/li>\n<li><code>:%TOhtml <\/code> Creates HTML version of the current document. (Try it, it is very useful).<\/li>\n<li><code>vim http:\/\/rosehosting.com\/<\/code> Vim can also open up URLs assuming they go directly to static HTML files.<\/li>\n<\/ul>\n<h3>Search and replace<\/h3>\n<p>In its basic form, it is the <code>:substitute<\/code> command or <code>:s<\/code> for short that searches a text pattern and replaces it with a string. The command has many options and these are the most commonly used ones.<\/p>\n<ul>\n<li><code>:%s\/something\/something_else\/g<\/code> Find the word <em>something<\/em> and replace it with <em>something_else<\/em> in the entire document.<\/li>\n<li><code>:s\/something\/something_else\/g<\/code> Similarly like the before command. This one just replaces in the current line only.<\/li>\n<li><code>:%s\/something\/something_else\/gc<\/code> Note the <code>c<\/code>. It replaces everything but asks for confirmation first.<\/li>\n<li><code>:%s\/\\&lt;something\\&gt;\/something_else\/gc<\/code> Changes whole words exactly matching <em>something<\/em> with <em>something_else<\/em> but ask for confirmation first.<\/li>\n<li><code>:%s\/SomeThing\/something_else\/gic<\/code> Here the <code>i<\/code> flag is used for case insensitive search. And the <code>c<\/code> flag for confirmation.<\/li>\n<\/ul>\n<h3>Comment out blocks of code<\/h3>\n<p>Enter Blockwise visual mode with CTRL+V and mark the block you wish to comment.<br \/>\nPress capital I and enter the comment string at the beginning of the line (# for bash, or \/\/ for C++ etc..)<br \/>\nPress ESC twice and all the lines will be commented out.<\/p>\n<h3>Conclusion<\/h3>\n<p>We have covered several Vim tips and tricks. Vim is a very feature-full editor offering a plethora of options for all sorts of uses. Very often due to its complexity many people find it frustrating to begin with in the first place. However, once you begin to grasp its way of working, you will begin to realize that the options and features it offers are so unique that no other editor today can replace it.<\/p>\n<hr \/>\n<p>Of course, if you use one of our <a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting.html\">Managed VPS Hosting<\/a> services, you can always contact and ask our expert Linux admins (via chat or ticket) about Vim and anything related to Vim. They are available 24\u00d77 and will provide Vim Tips and Vim tricksor assistance immediately.<\/p>\n<p><span style=\"color: #ff0000;\">PS.<\/span> If you liked this post, on Vim Tips and Tricks,\u00a0 please share it with your friends on the social networks using the buttons below or simply leave a reply. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will show you several Vim Tips and Tricks. The most common file editor in Linux is Vim. That&#8217;s &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"Vim Tips and Tricks\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#more-20414\" aria-label=\"Read more about Vim Tips and Tricks\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":26392,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[1394],"class_list":["post-20414","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tips-and-tricks","tag-vim","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Vim Tips and Tricks | RoseHosting<\/title>\n<meta name=\"description\" content=\"Vim Tips and Tricks | RoseHosting\" \/>\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.rosehosting.com\/blog\/vim-tips-and-tricks\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Vim Tips and Tricks\" \/>\n<meta property=\"og:description\" content=\"Vim Tips and Tricks | RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-14T12:47:32+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-05T12:55:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Vim Tips and Tricks\",\"datePublished\":\"2016-10-14T12:47:32+00:00\",\"dateModified\":\"2022-12-05T12:55:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/\"},\"wordCount\":870,\"commentCount\":3,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/vim-tips-and-tricks-1.jpg\",\"keywords\":[\"vim\"],\"articleSection\":[\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/\",\"name\":\"Vim Tips and Tricks | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/vim-tips-and-tricks-1.jpg\",\"datePublished\":\"2016-10-14T12:47:32+00:00\",\"dateModified\":\"2022-12-05T12:55:22+00:00\",\"description\":\"Vim Tips and Tricks | RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/vim-tips-and-tricks-1.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2016\\\/10\\\/vim-tips-and-tricks-1.jpg\",\"width\":1200,\"height\":600,\"caption\":\"Vim tips and tricks\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/vim-tips-and-tricks\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Vim Tips and Tricks\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Vim Tips and Tricks | RoseHosting","description":"Vim Tips and Tricks | RoseHosting","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.rosehosting.com\/blog\/vim-tips-and-tricks\/","og_locale":"en_US","og_type":"article","og_title":"Vim Tips and Tricks","og_description":"Vim Tips and Tricks | RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-10-14T12:47:32+00:00","article_modified_time":"2022-12-05T12:55:22+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Vim Tips and Tricks","datePublished":"2016-10-14T12:47:32+00:00","dateModified":"2022-12-05T12:55:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/"},"wordCount":870,"commentCount":3,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg","keywords":["vim"],"articleSection":["Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/","url":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/","name":"Vim Tips and Tricks | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg","datePublished":"2016-10-14T12:47:32+00:00","dateModified":"2022-12-05T12:55:22+00:00","description":"Vim Tips and Tricks | RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2016\/10\/vim-tips-and-tricks-1.jpg","width":1200,"height":600,"caption":"Vim tips and tricks"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/vim-tips-and-tricks\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Vim Tips and Tricks"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20414","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=20414"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20414\/revisions"}],"predecessor-version":[{"id":43724,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/20414\/revisions\/43724"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/26392"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=20414"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=20414"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=20414"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}