<h3 id="prerequisites">Prerequisites:</h3>
<ul>
<li>Backups of <strong>ALL</strong> your data (<em>especially your
Thunderbird directory</em>).<br />
</li>
<li><strong>Confirm your backups</strong> are working as expected.<br />
</li>
<li>Vim text editor installed with at least a basic/novice level
knowledge of vim.<br />
</li>
<li>Thunderbird email client installed with at least a basic/novice
level knowledge of the Thunderbird email client.<br />
</li>
<li>Web browser (preferably Firefox).<br />
</li>
</ul>
<h3 id="thunderbird-directories.">Thunderbird Directories.</h3>
<p>I&#x2019;m on a GNU/Linux system (Pop_OS!) and I have Thunderbird installed
via the apt system package manager (.deb).</p>
<ul>
<li>System package manager install.
<ul>
<li><code>$HOME/.thunderbird/</code></li>
</ul></li>
<li>Snap package manager install.
<ul>
<li><code>$HOME/snap/.thunderbird/</code></li>
</ul></li>
<li>Flatpak package manager install.
<ul>
<li><code>$HOME/.var/.thunderbird/</code></li>
</ul></li>
<li>Windows 10 install.
<ul>
<li><code>C:\Users\your-account\AppData\Roaming\Thunderbird\</code></li>
</ul></li>
<li>Your Thunderbird email filters are located in this subdirectory
(<em>msgFilterRules.dat</em>).
<ul>
<li><code>$HOME/.thunderbird/*.default-release/ImapMail/imap.email-accounts.com/msgFilterRules.dat</code></li>
</ul></li>
</ul>
<h3 id="vim-directories.">Vim Directories.</h3>
<p>I&#x2019;ve created subdirectories within <code>$HOME/.config/</code> as a
place to store my vim sessions. You may not have these directories on
your system, but you can create them using the <code>mkdir</code>
command.<br />
</p>
<ul>
<li><code>$HOME/.config/vim/sessions/session-files-here.vim</code></li>
</ul>
<h3 id="vim-session-file.">Vim session file.</h3>
<p>I&#x2019;ve created session files for purposes of editing my Thunderbird
email filters. This session only stores the shortcuts needed to make
flawless edits to my email filters. I will share them with you.<br />
</p>
<pre><code>nnoremap &lt;leader&gt;1 2dw$x0:s/ OR /\rOR /g&lt;CR&gt;
nnoremap &lt;leader&gt;2 Icondition=&quot;&lt;Esc&gt;A&quot;&lt;Esc&gt;0:s/ &quot;$/&quot;/&lt;CR&gt;
nnoremap &lt;leader&gt;n1 gg0VG:s/$/ /&lt;CR&gt;gg0VG:s/  *$/ /&lt;CR&gt;gg0
nnoremap &lt;leader&gt;s1 gg02f,&lt;C-v&gt;G$ugg02f,&lt;C-v&gt;G$:sort u&lt;CR&gt;gg0</code></pre>
<h3 id="web-sources.">Web sources.</h3>
<ul>
<li><strong>Article:</strong> <a href="https://www.vim.org/"
title="Vim is a highly configurable text editor built to make creating and changing any kind of text very efficient.">Vim
- the ubiquitous text editor</a><br />
<ul>
<li><strong>Supporting Article:</strong> <a
href="https://www.truth.sk/vim/vimbook-OPL.pdf"
title="Vim Documentation: The vim book (pdf file).">Vim Documentation:
The vim book (pdf file).</a><br />
</li>
</ul></li>
<li><strong>Article:</strong> <a
href="https://www.thunderbird.net/en-US/"
title="Make Email Easier.">Thunderbird is a free email application
that&#x2019;s easy to set up and customize...</a><br />
<ul>
<li><strong>Supporting Article:</strong> <a
href="https://support.mozilla.org/en-US/products/thunderbird"
title="Thunderbird Support site.">Thunderbird Support site.</a><br />
</li>
<li><strong>Supporting Article:</strong> <a
href="https://support.mozilla.org/en-US/kb/keyboard-shortcuts-thunderbird?redirectslug=keyboard-shortcuts&amp;redirectlocale=en-US"
title="Keyboard shortcuts">Keyboard shortcuts. Perform common
Thunderbird tasks quickly.</a><br />
</li>
<li><strong>Supporting Article:</strong> <a
href="https://support.mozilla.org/en-US/kb/protect-your-thunderbird-passwords-primary-password"
title="Primary Password has replaced Master Password.">Protect your
Thunderbird passwords with a Primary Password.</a><br />
</li>
<li><strong>Supporting Article:</strong> <a
href="https://support.mozilla.org/en-US/kb/organize-your-messages-using-filters"
title="Message filters allow you to set up Thunderbird to organize your messages automatically.">Organize
Your Messages by Using Filters.</a><br />
</li>
<li><strong>Supporting Article:</strong> <a
href="https://support.mozilla.org/en-US/kb/profiles-where-thunderbird-stores-user-data#w_finding-your-profile-without-opening-thunderbird"
title="How do I find my profile?">Profiles. Where Thunderbird stores
your messages and other user data.</a><br />
</li>
</ul></li>
<li><strong>Article:</strong> <a
href="https://medium.com/vim-drops/vim-sessions-50756b2c603a"
title="Vim&#x2019;s sessions, a tool to instantly save the state of everything in your current Vim session.">Vim&#x2019;s
sessions, a tool to instantly save the state of everything in your
current Vim session.</a><br />
</li>
</ul>
<h3 id="creative-work-license.">Creative work License.</h3>
<p>This work is licensed under a <a
href="https://creativecommons.org/licenses/by-sa/4.0/"
title="CC-BY-SA 4.0 International">Creative Commons
Attribution-ShareAlike 4.0 International License</a>.</p>
