<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Vimbyexample on 兜忆轩 | Cedric's Compiler Notes</title><link>https://douyixuan.github.io/tags/vimbyexample/</link><description>Recent content in Vimbyexample on 兜忆轩 | Cedric's Compiler Notes</description><image><title>兜忆轩 | Cedric's Compiler Notes</title><url>https://douyixuan.github.io/images/papermod-cover.png</url><link>https://douyixuan.github.io/images/papermod-cover.png</link></image><generator>Hugo -- 0.146.0</generator><language>en-us</language><lastBuildDate>Fri, 26 Apr 2024 17:43:14 +0800</lastBuildDate><atom:link href="https://douyixuan.github.io/tags/vimbyexample/index.xml" rel="self" type="application/rss+xml"/><item><title>Learn Vimscript on Exercism</title><link>https://douyixuan.github.io/posts/vimbyexample/exercism/</link><pubDate>Fri, 26 Apr 2024 17:43:14 +0800</pubDate><guid>https://douyixuan.github.io/posts/vimbyexample/exercism/</guid><description>待补充：本文摘要</description></item><item><title>Vimscript</title><link>https://douyixuan.github.io/posts/vimbyexample/vimscript/</link><pubDate>Mon, 15 Apr 2024 16:33:59 +0800</pubDate><guid>https://douyixuan.github.io/posts/vimbyexample/vimscript/</guid><description>&lt;p>You can run these scripts in vim editor in &lt;a href="https://www.freecodecamp.org/news/vim-editor-modes-explained/#normal-mode">normal mode&lt;/a>.&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-vim" data-lang="vim">&lt;span style="display:flex;">&lt;span>:&lt;span style="color:#a6e22e">source&lt;/span> &lt;span style="color:#66d9ef">hi&lt;/span>.&lt;span style="color:#a6e22e">vim&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>Or you can use:&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>vim -e -c &lt;span style="color:#e6db74">&amp;#39;redir &amp;gt;&amp;gt; /dev/stdout&amp;#39;&lt;/span> -S hi.vim -c &lt;span style="color:#e6db74">&amp;#39;q&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;p>or&lt;/p>
&lt;div class="highlight">&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;">&lt;code class="language-shell" data-lang="shell">&lt;span style="display:flex;">&lt;span>vim -e &lt;span style="color:#e6db74">&amp;#39;+redir &amp;gt;&amp;gt; /dev/stdout&amp;#39;&lt;/span> -S hi.vim &lt;span style="color:#e6db74">&amp;#39;+q&amp;#39;&lt;/span>
&lt;/span>&lt;/span>&lt;/code>&lt;/pre>&lt;/div>&lt;h2 id="examples">Examples&lt;/h2>
&lt;p>&lt;a href="../hi.vim">Hi&lt;/a>&lt;/p>
&lt;h2 id="reference">Reference&lt;/h2>
&lt;p>&lt;a href="https://learnvimscriptthehardway.stevelosh.com/chapters/00.html">Learn Vimscript the Hard Way&lt;/a>
&lt;a href="https://lymslive.github.io/vimllearn">VimL Learn&lt;/a>
&lt;a href="https://learnxinyminutes.com/docs/vimscript/">Learn X in Y minutes&lt;/a>
&lt;a href="https://devhints.io/vimscript">Vim scripting cheatsheet&lt;/a>&lt;/p></description></item></channel></rss>