{"id":10342,"date":"2006-08-15T23:29:11","date_gmt":"2006-08-15T20:29:11","guid":{"rendered":"https:\/\/mamchenkov.net\/wordpress\/2006\/08\/15\/vim-tip-quickly-insert-current-filename\/"},"modified":"2014-08-15T23:29:32","modified_gmt":"2014-08-15T21:29:32","slug":"vim-tip-quickly-insert-current-filename","status":"publish","type":"post","link":"https:\/\/mamchenkov.net\/wordpress\/2006\/08\/15\/vim-tip-quickly-insert-current-filename\/","title":{"rendered":"Vim tip: quickly insert current filename"},"content":{"rendered":"<!-- google_ad_section_start -->\n<p>I don&#8217;t need this functionality very often, but when I do, it&#8217;s nice to have a quick and easy way to do it. In order to insert the current filename, while in insert mode press <code>Ctrl-r%<\/code>.<\/p>\n<p>Via vim users mailing list.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"excerpt":{"rendered":"<!-- google_ad_section_start -->\n<p>I don&#8217;t need this functionality very often, but when I do, it&#8217;s nice to have a quick and easy way to do it. In order to insert the current filename, while in insert mode press Ctrl-r%. Via vim users mailing list.<\/p>\n<!-- google_ad_section_end -->\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_links_to":"","_links_to_target":""},"categories":[1,6,62],"tags":[2297,3094],"keyring_services":[],"class_list":["post-10342","post","type-post","status-publish","format-standard","hentry","category-general","category-linux","category-technology","tag-text-editors","tag-vim"],"aioseo_notices":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[{"id":16660,"url":"https:\/\/mamchenkov.net\/wordpress\/2012\/09\/02\/avoid-esc-in-vim\/","url_meta":{"origin":10342,"position":0},"title":"Avoid ESC in Vim","author":"Leonid Mamchenkov","date":"September 2, 2012","format":false,"excerpt":"OK, this is one of those times when I've been humbled again. \u00a0I've been using Vim for over a decade now, and once in a while it occurred to me that using ESC to exit to normal mode is NOT the most efficient thing ever. \u00a0Maybe my little finger is\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":118,"url":"https:\/\/mamchenkov.net\/wordpress\/2003\/01\/14\/practical-rpm\/","url_meta":{"origin":10342,"position":1},"title":"Practical RPM","author":"Leonid Mamchenkov","date":"January 14, 2003","format":false,"excerpt":"This document presents few practical tips for users of Redhat Pacakage Manager (RPM). Introduction This document will not cover or explain any theory behind RPM, since it has been nicely done in few other documents. Please consider reading man rpm for a general list of options and RPM-Howto for the\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":7494,"url":"https:\/\/mamchenkov.net\/wordpress\/2004\/05\/10\/vim-for-perl-developers\/","url_meta":{"origin":10342,"position":2},"title":"Vim for Perl developers","author":"Leonid Mamchenkov","date":"May 10, 2004","format":false,"excerpt":"This is my attempt to provide a clear and simple instructions on adopting Vim text editor for programming needs. I am using Perl as the programming language in the examples, but most of this document will apply equally for any other programming language. Update: This post was translated into Portuguese\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":27348,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/02\/12\/vim-setup-for-php-development\/","url_meta":{"origin":10342,"position":3},"title":"Vim setup for PHP development","author":"Leonid Mamchenkov","date":"February 12, 2017","format":false,"excerpt":"Robert Basic shares his \"current Vim setup for PHP development\". \u00a0He shows how setup the Gutentags plugin, jump to definitions with CtrlP plugin, display of the current file and method in the status line, add support for PHP namespaces, improve linting with Asynchronous Lint Engine, and add support for PHPStan.\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":22102,"url":"https:\/\/mamchenkov.net\/wordpress\/2014\/07\/01\/vim-awesome-awesome-vim-plugins-from-across-the-universe\/","url_meta":{"origin":10342,"position":4},"title":"Vim Awesome &#8211; awesome Vim plugins from across the universe","author":"Leonid Mamchenkov","date":"July 1, 2014","format":"link","excerpt":"Vim Awesome - awesome Vim plugins from across the universe","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":28184,"url":"https:\/\/mamchenkov.net\/wordpress\/2017\/11\/06\/turning-vim-into-an-ide-through-vim-plugins\/","url_meta":{"origin":10342,"position":5},"title":"Turning vim into an IDE through vim plugins","author":"Leonid Mamchenkov","date":"November 6, 2017","format":false,"excerpt":"\"Turning vim into an IDE through vim plugins\" is yet another take on customizing the Vim text editor and making it into a full featured IDE.\u00a0 Most of these things were possible for years (I even had my own blog post on the subject), but with every version of Vim\u2026","rel":"","context":"In &quot;All&quot;","block_context":{"text":"All","link":"https:\/\/mamchenkov.net\/wordpress\/category\/general\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/mamchenkov.net\/wordpress\/wp-content\/uploads\/2017\/11\/vim-ide-500x318.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"jetpack_sharing_enabled":true,"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/10342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/comments?post=10342"}],"version-history":[{"count":0,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/posts\/10342\/revisions"}],"wp:attachment":[{"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/media?parent=10342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/categories?post=10342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/tags?post=10342"},{"taxonomy":"keyring_services","embeddable":true,"href":"https:\/\/mamchenkov.net\/wordpress\/wp-json\/wp\/v2\/keyring_services?post=10342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}