<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>C&#43;&#43; on passthejoe</title>
    <link>https://relvokcor.xyz/~passthejoe/hugo/blog/c/</link>
    <description>Recent content in C&#43;&#43; on passthejoe</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2025, Steven Rosenberg.</copyright>
    <lastBuildDate>Sat, 23 May 2020 16:55:32 -0700</lastBuildDate>
    <atom:link href="https://relvokcor.xyz/~passthejoe/hugo/blog/c/index.xml" rel="self" type="application/rss+xml" />
    <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>
