<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="../assets/xml/rss.xsl" media="all"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Christoph Frick - ofnir.net - Open Source Consultant, Software Developer and System Administrator (Posts about Vim)</title><link>https://ofnir.net/</link><description></description><atom:link href="https://ofnir.net/categories/vim.xml" rel="self" type="application/rss+xml"></atom:link><language>en</language><copyright>Contents © 2026 &lt;a href="mailto:cf@ofnir.net"&gt;Christoph Frick - ofnir.net&lt;/a&gt; </copyright><lastBuildDate>Tue, 21 Apr 2026 11:44:46 GMT</lastBuildDate><generator>Nikola (getnikola.com)</generator><docs>http://blogs.law.harvard.edu/tech/rss</docs><item><title>Using gocr and flameshot to get text from screenshots</title><link>https://ofnir.net/posts/using-gocr-and-flameshot-to-get-text-from-screenshots/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;From time to time I have the need to get text from an image, when
someone shares a screen-shot, but not the URL in it or when I want to copy
code from a stopped youtube video.  So ideally I want to select a region
of my screen and turn that into text.&lt;/p&gt;
&lt;p&gt;First install &lt;a href="https://ofnir.net/posts/using-gocr-and-flameshot-to-get-text-from-screenshots/"&gt;gocr&lt;/a&gt; and &lt;a href="https://ofnir.net/posts/using-gocr-and-flameshot-to-get-text-from-screenshots/"&gt;flameshot&lt;/a&gt;.  Then create a script, that
runs &lt;code&gt;gocr&lt;/code&gt; and opens the resulting text (in my case I want to open
a terminal with &lt;code&gt;vim&lt;/code&gt;).  E.g.  &lt;code&gt;~/bin/ocr&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="ch"&gt;#!/bin/sh&lt;/span&gt;
rxvt&lt;span class="w"&gt; &lt;/span&gt;-e&lt;span class="w"&gt; &lt;/span&gt;sh&lt;span class="w"&gt; &lt;/span&gt;-c&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s2"&gt;"gocr -i \"&lt;/span&gt;&lt;span class="nv"&gt;$1&lt;/span&gt;&lt;span class="s2"&gt;\" | vim -"&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;Then create a "desktop" entry for &lt;code&gt;flameshot&lt;/code&gt; to pick up.
&lt;code&gt;~/.local/share/applications/ocr.desktop&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code literal-block"&gt;&lt;span class="k"&gt;[Desktop Entry]&lt;/span&gt;
&lt;span class="na"&gt;Version&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;1.0&lt;/span&gt;
&lt;span class="na"&gt;Type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Application&lt;/span&gt;
&lt;span class="na"&gt;Terminal&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;false&lt;/span&gt;
&lt;span class="na"&gt;Exec&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;.../bin/ocr %f&lt;/span&gt;
&lt;span class="na"&gt;Name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;OCR&lt;/span&gt;
&lt;span class="na"&gt;Categories&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;Graphics&lt;/span&gt;&lt;span class="c1"&gt;;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;

&lt;p&gt;(Note, that the path there is absolute, or you have to figure out, what
works for you... I couldn't be bothered to look into this)&lt;/p&gt;
&lt;p&gt;Then start &lt;code&gt;flameshot gui&lt;/code&gt; (I have that on my &lt;code&gt;Print Screen&lt;/code&gt;-key),
select the region to OCR, press &lt;code&gt;CTRL-o&lt;/code&gt; (or click the button to open
the screenshot with an application), then pick the OCR-Application from
the desktop entry, which then opens the text.&lt;/p&gt;</description><category>Flameshot</category><category>Gocr</category><category>OCR</category><category>Vim</category><guid>https://ofnir.net/posts/using-gocr-and-flameshot-to-get-text-from-screenshots/</guid><pubDate>Wed, 07 Jul 2021 22:00:00 GMT</pubDate></item><item><title>Figwheel with Vim-Fireplace 2.0</title><link>https://ofnir.net/posts/figwheel-with-vim-fireplace-20/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;With recent changes in Cider and the new Vim-Fireplace 2.0 release, let's
update the setup for it.&lt;/p&gt;
&lt;p&gt;In a project created by e.g. &lt;code class="docutils literal"&gt;lein new figwheel &lt;span class="pre"&gt;hello-world&lt;/span&gt;&lt;/code&gt;, add the new
setup for Ciders Piggieback:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code clojure"&gt;&lt;a id="rest_code_f007e19ab53644e698d092b2423bbeb9-1" name="rest_code_f007e19ab53644e698d092b2423bbeb9-1" href="https://ofnir.net/posts/figwheel-with-vim-fireplace-20/#rest_code_f007e19ab53644e698d092b2423bbeb9-1"&gt;&lt;/a&gt;&lt;span class="ss"&gt;:profiles&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:dependencies&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="nv"&gt;cider/piggieback&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"0.4.1"&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt;
&lt;a id="rest_code_f007e19ab53644e698d092b2423bbeb9-2" name="rest_code_f007e19ab53644e698d092b2423bbeb9-2" href="https://ofnir.net/posts/figwheel-with-vim-fireplace-20/#rest_code_f007e19ab53644e698d092b2423bbeb9-2"&gt;&lt;/a&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="ss"&gt;:repl-options&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:nrepl-middleware&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;cider.piggieback/wrap-cljs-repl&lt;/span&gt;&lt;span class="p"&gt;]}}}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Merge this settings with existing code from the template.  Note, that both the
group of the artifact and the namespace for Piggieback changed.&lt;/p&gt;
&lt;p&gt;With the template you can not open Vim, start the REPL, and run &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;(fig-start)&lt;/span&gt;&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;Now with Vim-Fireplace 2.0 to work via Piggieback, you call:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code vim"&gt;&lt;a id="rest_code_e930aed551db4ccaaa364a661da2a434-1" name="rest_code_e930aed551db4ccaaa364a661da2a434-1" href="https://ofnir.net/posts/figwheel-with-vim-fireplace-20/#rest_code_e930aed551db4ccaaa364a661da2a434-1"&gt;&lt;/a&gt;&lt;span class="p"&gt;:&lt;/span&gt;CljEval &lt;span class="p"&gt;(&lt;/span&gt;cider.piggieback&lt;span class="sr"&gt;/cljs-repl (figwheel-sidecar.repl-api/&lt;/span&gt;repl&lt;span class="p"&gt;-&lt;/span&gt;env&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;</description><category>Cider</category><category>Clojure</category><category>ClojureScript</category><category>Figwheel</category><category>Vim</category><category>Vim-Fireplace</category><guid>https://ofnir.net/posts/figwheel-with-vim-fireplace-20/</guid><pubDate>Thu, 01 Aug 2019 22:00:00 GMT</pubDate></item><item><title>Fennel Vim setup</title><link>https://ofnir.net/posts/fennel-vim-setup/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;Since this gets asked in #fennel from time to time, here is my Vim setup for Fennel:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code vim"&gt;&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-1" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-1" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-1"&gt;&lt;/a&gt;&lt;span class="k"&gt;call&lt;/span&gt; plug#begin&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'~/.vim/plugged'&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-2" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-2" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-2"&gt;&lt;/a&gt;&lt;span class="c"&gt;" ...&lt;/span&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-3" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-3" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-3"&gt;&lt;/a&gt;Plug &lt;span class="s1"&gt;'guns/vim-sexp'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; {&lt;span class="s1"&gt;'for'&lt;/span&gt;: [&lt;span class="s1"&gt;'fennel'&lt;/span&gt;]}
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-4" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-4" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-4"&gt;&lt;/a&gt;Plug &lt;span class="s1"&gt;'tpope/vim-sexp-mappings-for-regular-people'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; {&lt;span class="s1"&gt;'for'&lt;/span&gt;: [&lt;span class="s1"&gt;'fennel'&lt;/span&gt;]}
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-5" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-5" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-5"&gt;&lt;/a&gt;Plug &lt;span class="s1"&gt;'kovisoft/paredit'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; {&lt;span class="s1"&gt;'for'&lt;/span&gt;: [&lt;span class="s1"&gt;'fennel'&lt;/span&gt;]}
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-6" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-6" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-6"&gt;&lt;/a&gt;Plug &lt;span class="s1"&gt;'bakpakin/fennel.vim'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; {&lt;span class="s1"&gt;'for'&lt;/span&gt;: &lt;span class="s1"&gt;'fennel'&lt;/span&gt;}
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-7" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-7" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-7"&gt;&lt;/a&gt;&lt;span class="c"&gt;" ...&lt;/span&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-8" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-8" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-8"&gt;&lt;/a&gt;&lt;span class="k"&gt;call&lt;/span&gt; plug#&lt;span class="k"&gt;end&lt;/span&gt;&lt;span class="p"&gt;()&lt;/span&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-9" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-9" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-9"&gt;&lt;/a&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-10" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-10" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-10"&gt;&lt;/a&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="k"&gt;g&lt;/span&gt;:sexp_enable_insert_mode_mappings &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="m"&gt;0&lt;/span&gt;
&lt;a id="rest_code_64a55ed06b74445883a7249c2fc7a3fa-11" name="rest_code_64a55ed06b74445883a7249c2fc7a3fa-11" href="https://ofnir.net/posts/fennel-vim-setup/#rest_code_64a55ed06b74445883a7249c2fc7a3fa-11"&gt;&lt;/a&gt;&lt;span class="k"&gt;let&lt;/span&gt; &lt;span class="k"&gt;g&lt;/span&gt;:sexp_filetypes &lt;span class="p"&gt;=&lt;/span&gt; &lt;span class="s1"&gt;'fennel'&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;See &lt;a class="reference external" href="https://gist.github.com/christoph-frick/ddba9ea1bdccef1972cd4cec9b453a8b"&gt;https://gist.github.com/christoph-frick/ddba9ea1bdccef1972cd4cec9b453a8b&lt;/a&gt;&lt;/p&gt;</description><category>Fennel</category><category>Vim</category><guid>https://ofnir.net/posts/fennel-vim-setup/</guid><pubDate>Sun, 07 Apr 2019 22:00:00 GMT</pubDate></item><item><title>Vim-Fireplace now supports code formatting via Cider/clj-fmt</title><link>https://ofnir.net/posts/vim-fireplace-now-supports-code-formatting-via-ciderclj-fmt/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;Finally my patch to access the &lt;cite&gt;clj-fmt&lt;/cite&gt; feature in the &lt;cite&gt;cider-nrepl&lt;/cite&gt; made into the master branch.  The feature is mapped to the &lt;cite&gt;formatexpr&lt;/cite&gt; of vim, which is accessed via &lt;code class="docutils literal"&gt;gq&lt;/code&gt;.  So to clean up the mess you just created, press &lt;code class="docutils literal"&gt;gqaF&lt;/code&gt; (format the outermost form).&lt;/p&gt;
&lt;p&gt;&lt;a class="reference external" href="https://github.com/tpope/vim-fireplace/commit/2193122e13fdf9e9af30475d8d9a90746234c1d8"&gt;https://github.com/tpope/vim-fireplace/commit/2193122e13fdf9e9af30475d8d9a90746234c1d8&lt;/a&gt;&lt;/p&gt;</description><category>Cider</category><category>clj-fmt</category><category>Clojure</category><category>Vim</category><category>Vim-Fireplace</category><guid>https://ofnir.net/posts/vim-fireplace-now-supports-code-formatting-via-ciderclj-fmt/</guid><pubDate>Thu, 04 May 2017 22:00:00 GMT</pubDate></item><item><title>Use Vim-Fireplace with Figwheel greater 0.4</title><link>https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;I have put together an &lt;a class="reference external" href="https://github.com/christoph-frick/rum-figwheel-fireplace"&gt;example&lt;/a&gt; repo, how to use
&lt;a class="reference external" href="https://github.com/tpope/vim-fireplace"&gt;vim-fireplace&lt;/a&gt; with &lt;a class="reference external" href="https://github.com/bhauman/lein-figwheel"&gt;figwheel&lt;/a&gt; after the 0.4 release.  This
release removed cider and piggieback, so we have to add them back.&lt;/p&gt;
&lt;p&gt;Add this to the according sections of your &lt;code class="docutils literal"&gt;project.clj&lt;/code&gt;:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code clojure"&gt;&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-1" name="rest_code_19d145ded11a42b8ba1930e449b52173-1" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-1"&gt;&lt;/a&gt;&lt;span class="c1"&gt;;; add nrepl middleware for fireplace&lt;/span&gt;
&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-2" name="rest_code_19d145ded11a42b8ba1930e449b52173-2" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-2"&gt;&lt;/a&gt;&lt;span class="ss"&gt;:figwheel&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:nrepl-middleware&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="s"&gt;"cider.nrepl/cider-middleware"&lt;/span&gt;
&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-3" name="rest_code_19d145ded11a42b8ba1930e449b52173-3" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-3"&gt;&lt;/a&gt;&lt;span class="w"&gt;                              &lt;/span&gt;&lt;span class="s"&gt;"cemerick.piggieback/wrap-cljs-repl"&lt;/span&gt;&lt;span class="p"&gt;]}&lt;/span&gt;
&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-4" name="rest_code_19d145ded11a42b8ba1930e449b52173-4" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-4"&gt;&lt;/a&gt;&lt;span class="c1"&gt;;; add piggieback for fireplace&lt;/span&gt;
&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-5" name="rest_code_19d145ded11a42b8ba1930e449b52173-5" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-5"&gt;&lt;/a&gt;&lt;span class="ss"&gt;:profiles&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:dev&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:dependencies&lt;/span&gt;&lt;span class="w"&gt;  &lt;/span&gt;&lt;span class="p"&gt;[[&lt;/span&gt;&lt;span class="nv"&gt;com.cemerick/piggieback&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="s"&gt;"0.2.1"&lt;/span&gt;&lt;span class="p"&gt;]]&lt;/span&gt;
&lt;a id="rest_code_19d145ded11a42b8ba1930e449b52173-6" name="rest_code_19d145ded11a42b8ba1930e449b52173-6" href="https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/#rest_code_19d145ded11a42b8ba1930e449b52173-6"&gt;&lt;/a&gt;&lt;span class="w"&gt;                 &lt;/span&gt;&lt;span class="ss"&gt;:repl-options&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;&lt;span class="ss"&gt;:nrepl-middleware&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nv"&gt;cemerick.piggieback/wrap-cljs-repl&lt;/span&gt;&lt;span class="p"&gt;]}}}&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;</description><category>Clojure</category><category>ClojureScript</category><category>Figwheel</category><category>Fireplace</category><category>nREPL</category><category>Vim</category><guid>https://ofnir.net/posts/use-vim-fireplace-with-figwheel-greater-04/</guid><pubDate>Sat, 17 Oct 2015 22:00:00 GMT</pubDate></item><item><title>Make the Figwheel REPL work in vim-fireplace</title><link>https://ofnir.net/posts/make-the-figwheel-repl-work-in-vim-fireplace/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;I just have created a &lt;a class="reference external" href="https://github.com/tpope/vim-fireplace/pull/222"&gt;pull request&lt;/a&gt; with Vim-Fireplace, that
allows passing down an expression to &lt;cite&gt;:Piggieback&lt;/cite&gt;.  This allows using the
Figwheel REPL without much hassle.&lt;/p&gt;
&lt;p&gt;First follow the instructions to create a Figwheel project.  E.g. &lt;code class="docutils literal"&gt;lein new
figwheel &lt;span class="pre"&gt;example-project&lt;/span&gt;&lt;/code&gt;.  Check the generated &lt;code class="docutils literal"&gt;project.clj&lt;/code&gt; file and
remove the comment on the line, that sets the nREPL port (&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;:nrepl-port&lt;/span&gt;
7888&lt;/code&gt;, pick any port number you like).&lt;/p&gt;
&lt;p&gt;To make Vim-Fireplace pick up the nREPL port create an &lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;.nrepl-port&lt;/span&gt;&lt;/code&gt; file
containing the port number.  E.g. &lt;code class="docutils literal"&gt;echo 7888 &amp;gt; &lt;span class="pre"&gt;.nrepl-port&lt;/span&gt;&lt;/code&gt;.  Otherwise
connect from the Vim command line with &lt;code class="docutils literal"&gt;:Connect &lt;span class="pre"&gt;nrepl://localhost:7888&lt;/span&gt;&lt;/code&gt; (or
follow the dialog with just &lt;code class="docutils literal"&gt;:Connect&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;In Vim then open any ClojureScript file (e.g. the generated
&lt;code class="docutils literal"&gt;src/example_project/core.cljs&lt;/code&gt;) and then enter at the Vim command prompt:&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code clojure"&gt;&lt;a id="rest_code_7ecb5c673ed14a78b546f331b67d0732-1" name="rest_code_7ecb5c673ed14a78b546f331b67d0732-1" href="https://ofnir.net/posts/make-the-figwheel-repl-work-in-vim-fireplace/#rest_code_7ecb5c673ed14a78b546f331b67d0732-1"&gt;&lt;/a&gt;&lt;span class="ss"&gt;:Piggieback!&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;do &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;require&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="ss"&gt;'figwheel-sidecar.repl-api&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nf"&gt;figwheel-sidecar.repl-api/cljs-repl&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Now saving ClojureScript or CSS files will automatically (and statefully)
reload in the browser.  And all the regular things in Vim-Fireplace like
evaluating expressions or requesting the docs work too.&lt;/p&gt;
&lt;p&gt;For repeatability add this alias in your &lt;code class="docutils literal"&gt;.vimrc&lt;/code&gt; (or in an &lt;code class="docutils literal"&gt;after&lt;/code&gt; script
for Clojure or Vim-Fireplace):&lt;/p&gt;
&lt;div class="code"&gt;&lt;pre class="code vim"&gt;&lt;a id="rest_code_f7e06ed6d2ce4b329e8a351fabebed30-1" name="rest_code_f7e06ed6d2ce4b329e8a351fabebed30-1" href="https://ofnir.net/posts/make-the-figwheel-repl-work-in-vim-fireplace/#rest_code_f7e06ed6d2ce4b329e8a351fabebed30-1"&gt;&lt;/a&gt;command&lt;span class="p"&gt;!&lt;/span&gt; Figwheel :Piggieback&lt;span class="p"&gt;!&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="k"&gt;do&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;require 'figwheel&lt;span class="p"&gt;-&lt;/span&gt;sidecar.repl&lt;span class="p"&gt;-&lt;/span&gt;api&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;figwheel&lt;span class="p"&gt;-&lt;/span&gt;sidecar.repl&lt;span class="p"&gt;-&lt;/span&gt;api/cljs&lt;span class="p"&gt;-&lt;/span&gt;repl&lt;span class="p"&gt;))&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;</description><category>Clojure</category><category>ClojureScript</category><category>Figwheel</category><category>Vim</category><category>Vim-Fireplace</category><guid>https://ofnir.net/posts/make-the-figwheel-repl-work-in-vim-fireplace/</guid><pubDate>Mon, 08 Jun 2015 22:00:00 GMT</pubDate></item><item><title>Change what vim considers a keyword in fireplace for clojure</title><link>https://ofnir.net/posts/change-what-vim-considers-a-keyword-in-fireplace-for-clojure/</link><dc:creator>Christoph Frick - ofnir.net</dc:creator><description>&lt;p&gt;Clojure allows for a lot more chars in a symbol than many other languages.
Vim-Fireplace takes care for you by adding lots of the often used additional
chars (e.g. &lt;code class="docutils literal"&gt;?&lt;/code&gt; is the postfix for predicates, symbols starting with &lt;code class="docutils literal"&gt;:&lt;/code&gt;
are keywords).&lt;/p&gt;
&lt;p&gt;If you are not happy with the choices, you can remove/add simply by creating a
&lt;code class="docutils literal"&gt;&lt;span class="pre"&gt;~/.vim/after/ftplugin/clojure.vim&lt;/span&gt;&lt;/code&gt; file and manipulate the &lt;code class="docutils literal"&gt;iskeyword&lt;/code&gt;
there.  E.g. &lt;code class="docutils literal"&gt;set &lt;span class="pre"&gt;iskeyword-=/&lt;/span&gt;&lt;/code&gt; will make the &lt;code class="docutils literal"&gt;/&lt;/code&gt; char a barrier, where
word motions stop.  Check with calling &lt;code class="docutils literal"&gt;set iskeyword&lt;/code&gt; on the command prompt
what is configured.&lt;/p&gt;</description><category>Clojure</category><category>Fireplace</category><category>Vim</category><guid>https://ofnir.net/posts/change-what-vim-considers-a-keyword-in-fireplace-for-clojure/</guid><pubDate>Tue, 19 May 2015 22:00:00 GMT</pubDate></item></channel></rss>