<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Marks on Cheat Sheet</title><link>/tags/marks/</link><description>Recent content in Marks on Cheat Sheet</description><generator>Hugo</generator><language>en</language><lastBuildDate>Tue, 26 May 2026 00:00:00 +0000</lastBuildDate><atom:link href="/tags/marks/index.xml" rel="self" type="application/rss+xml"/><item><title>Marks</title><link>/dotfiles/vim/tips/marks/</link><pubDate>Tue, 26 May 2026 00:00:00 +0000</pubDate><guid>/dotfiles/vim/tips/marks/</guid><description>&lt;h1 id="marks"&gt;Marks&lt;a class="anchor" href="#marks"&gt;#&lt;/a&gt;&lt;/h1&gt;
&lt;p&gt;Based on &lt;em&gt;Practical Vim, 2nd ed.&lt;/em&gt; Tip 54 (Mark Your Place and Snap Back to It.)&lt;/p&gt;
&lt;h3 id="setting-marks"&gt;Setting Marks&lt;a class="anchor" href="#setting-marks"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;m[a-zA-Z]&lt;/code&gt;: Set a mark
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;[a-z]&lt;/code&gt;: Local to the current buffer&lt;/li&gt;
&lt;li&gt;&lt;code&gt;[A-Z]&lt;/code&gt;: Global across files&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="jumping-to-marks"&gt;Jumping to Marks&lt;a class="anchor" href="#jumping-to-marks"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;'&amp;lt;mark&amp;gt;&lt;/code&gt;: Move to the line where a mark was set (first non-whitespace character)&lt;/li&gt;
&lt;li&gt;&lt;code&gt;`&amp;lt;mark&amp;gt;&lt;/code&gt;: Move to the exact position (line and column) where a mark was set&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 id="listing-marks"&gt;Listing Marks&lt;a class="anchor" href="#listing-marks"&gt;#&lt;/a&gt;&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;:marks&lt;/code&gt;: List all current marks&lt;/li&gt;
&lt;li&gt;&lt;code&gt;:marks &amp;lt;arg&amp;gt;&lt;/code&gt;: List marks specified in &lt;code&gt;&amp;lt;arg&amp;gt;&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;</description></item></channel></rss>