<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Cheatsheet on SANJAY REGMI</title>
    <link>https://sanjayregmi.com/tags/cheatsheet/</link>
    <description>Recent content in Cheatsheet on SANJAY REGMI</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    
    <lastBuildDate>Sat, 11 Feb 2023 14:24:52 -0800</lastBuildDate><atom:link href="https://sanjayregmi.com/tags/cheatsheet/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Vim Cheatsheet</title>
      <link>https://sanjayregmi.com/posts/vim-cheatsheet/</link>
      <pubDate>Sat, 11 Feb 2023 14:24:52 -0800</pubDate>
      
      <guid>https://sanjayregmi.com/posts/vim-cheatsheet/</guid>
      <description>&lt;p&gt;This page is frequently updated :).&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Didn&amp;rsquo;t know Vim offered spellcheck, handy when editing your md files on the ssh console; enter the following in Vim command mode:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  :set spell &lt;span class=&#34;nv&#34;&gt;spelllang&lt;/span&gt;&lt;span class=&#34;o&#34;&gt;=&lt;/span&gt;en_ca&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Paste from clipboard:&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;SHIFT + Right Click&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Edit all files iside the directory&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;div class=&#34;highlight-wrapper&#34;&gt;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;vim &lt;span class=&#34;se&#34;&gt;\*&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;open all files inside the directory&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  :ls &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;shows all opens files in vim&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  :w &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;write the file that is open&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  :ls &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;show all files. The files that is open is marked&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  :b filename &lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;open the second file&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;  &#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;  repeat &lt;span class=&#34;k&#34;&gt;until&lt;/span&gt; you&lt;span class=&#34;err&#34;&gt;&amp;#39;&lt;/span&gt;re &lt;span class=&#34;k&#34;&gt;done&lt;/span&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;/div&gt;&#xA;&lt;p&gt;&amp;#x1f332;&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>
