<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Vim on passthejoe</title>
    <link>https://relvokcor.xyz/~passthejoe/hugo/blog/vim/</link>
    <description>Recent content in Vim on passthejoe</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2025, Steven Rosenberg.</copyright>
    <lastBuildDate>Sat, 22 Apr 2023 00:11:00 -0800</lastBuildDate>
    <atom:link href="https://relvokcor.xyz/~passthejoe/hugo/blog/vim/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Friction in the Hugo composition process — Part 1</title>
      <link>https://relvokcor.xyz/~passthejoe/hugo/friction-in-the-hugo-composition-process-part-1/</link>
      <pubDate>Sat, 22 Apr 2023 00:11:00 -0800</pubDate>
      <guid>https://relvokcor.xyz/~passthejoe/hugo/friction-in-the-hugo-composition-process-part-1/</guid>
      <description>&lt;p&gt;I would write more, I say, if it was easier to start, write and publish a blog entry.&lt;/p&gt;&#xA;&lt;p&gt;I have a Bash script that allows me to easily write and publish microblog-style entries. Maybe I should come up with something similar for Hugo. It&amp;rsquo;s been on my to-do list.&lt;/p&gt;&#xA;&lt;p&gt;I can write tweets quickly. But a Hugo blog entry is a different thing.&lt;/p&gt;&#xA;&lt;p&gt;There&amp;rsquo;s a bunch of metadata at the top of the post. You need a title, time and date, author name and Twitter handle field. I guess I can forget about that last one in the Elon era. And then there are tags. And I can choose, post by post, whether to show the full post in the index, or not. There&amp;rsquo;s an optional description that makes the blog listing pages look much better. You have to come up with a file name.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Vim tip: Open the last file you closed with :e#</title>
      <link>https://relvokcor.xyz/~passthejoe/hugo/vim-tip-open-the-last-file-you-closed-with-e/</link>
      <pubDate>Fri, 13 Nov 2020 05:03:49 -0800</pubDate>
      <guid>https://relvokcor.xyz/~passthejoe/hugo/vim-tip-open-the-last-file-you-closed-with-e/</guid>
      <description>&lt;p&gt;I can&amp;rsquo;t believe I didn&amp;rsquo;t learn this earlier because now I do it all the time:&lt;/p&gt;&#xA;&lt;p&gt;If you close a file, as I often do with &lt;code&gt;:bd&lt;/code&gt;, to open the last file you closed, type &lt;code&gt;e#&lt;/code&gt; in command mode:&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;:e#&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;The last closed file opens in your current window.&lt;/p&gt;&#xA;&lt;p&gt;This is great for me because in my editing workflow, I have a story budget from one directory in one window, and I work on stories from a different directory in another. So my working directory is the story directory, and I would have to change it to reopen my budget file, which I often close when moving from one computer to another to do a Google Meet (aka Google Zoom) chat and not be too loud for everybody else in the house. (It&amp;rsquo;s 2020, and we&amp;rsquo;re quarantining.)&lt;/p&gt;</description>
    </item>
    <item>
      <title>C&#43;&#43; in Vim with two lines in .vimrc</title>
      <link>https://relvokcor.xyz/~passthejoe/hugo/c-in-vim-with-two-lines-in-.vimrc/</link>
      <pubDate>Sat, 23 May 2020 16:55:32 -0700</pubDate>
      <guid>https://relvokcor.xyz/~passthejoe/hugo/c-in-vim-with-two-lines-in-.vimrc/</guid>
      <description>&lt;p&gt;With inspiration and code from &lt;a href=&#34;https://goyalankit.com/blog/compile-and-run-cpp-program-from-vim&#34;&gt;Ankit&lt;/a&gt;, I am using Vim to compile and run C++ programs without leaving the editor.&lt;/p&gt;&#xA;&lt;p&gt;I added these two lines to my &lt;code&gt;.vimrc&lt;/code&gt;:&lt;/p&gt;&#xA;&lt;pre&gt;&lt;code&gt;nnoremap &amp;lt;F7&amp;gt; :!g++ -o %:r %&amp;lt;Enter&amp;gt;&#xA;nnoremap &amp;lt;F8&amp;gt; :!./%:r&amp;lt;Enter&amp;gt;&#xA;&lt;/code&gt;&lt;/pre&gt;&#xA;&lt;p&gt;I hit &lt;code&gt;F7&lt;/code&gt; to compile the program I&amp;rsquo;m working on.&lt;/p&gt;&#xA;&lt;p&gt;&lt;code&gt;F8&lt;/code&gt; runs that program.&lt;/p&gt;&#xA;&lt;p&gt;This is much simpler than an IDE, and simpler still than Geany, which is pretty simple already.&lt;/p&gt;&#xA;&lt;p&gt;These lines could be modified to compile and run a Java program, or to just run your code in scripting languages like Ruby, Perl and Python.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
