<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Arthur Zhuk</title>
    <description>The latest articles on DEV Community by Arthur Zhuk (@ug02fast).</description>
    <link>https://dev.to/ug02fast</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F82418%2Fd50d378d-c1d9-40b3-bda7-d6512779ec95.jpg</url>
      <title>DEV Community: Arthur Zhuk</title>
      <link>https://dev.to/ug02fast</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ug02fast"/>
    <language>en</language>
    <item>
      <title>You're using Vim Wrong - Relative Line Numbers</title>
      <dc:creator>Arthur Zhuk</dc:creator>
      <pubDate>Wed, 28 Oct 2020 16:12:16 +0000</pubDate>
      <link>https://dev.to/ug02fast/using-vim-wrong-relative-line-numbers-1dnc</link>
      <guid>https://dev.to/ug02fast/using-vim-wrong-relative-line-numbers-1dnc</guid>
      <description>&lt;p&gt;Learning Vim starts off as a daunting task. Setting up your colors, tab key to spaces, space count, configuring your linter, and on and on to infinity. These are all important steps in your journey to learning vim. Just make sure you don't overlook &lt;em&gt;Relative Line Numbers&lt;/em&gt;. &lt;/p&gt;

&lt;p&gt;The relative line numbers setting allows you to jump exactly where you want without having to do a mental addition or subtraction. The strategy is to look at the line number column, jump to the line you want to edit using a command like &lt;em&gt;10k&lt;/em&gt;, jump to the part of the line you want to change, and perform the edit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/iJ7kN1tWP0gTpF11HI/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/iJ7kN1tWP0gTpF11HI/giphy.gif" alt="relative"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This defeats having to look at the line number column and for example, calculate the difference between 16 and 9 in your head then execute the &lt;em&gt;7k&lt;/em&gt; command to jump there. For those who aren't using Vim, it completely blows bashing your arrow keys like you're playing snake to get the location you want to edit.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://i.giphy.com/media/H6uASXP5nD6Bn36oA5/giphy.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://i.giphy.com/media/H6uASXP5nD6Bn36oA5/giphy.gif" alt="arrows"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The beautiful thing with learning more Vim mechanics is it compounds with the rest of the efficiencies you pick up throughout your programming journey. As it becomes deeper ingrained in your muscle memory you are able to chop up your code in every which way with ease. You experience less fatigue from typing and have more energy to organize and refactor your rough draft implementations.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2FADcgPac.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fi.imgur.com%2FADcgPac.jpg" alt="snake"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do you use relative line numbers when you use Vim? Do you know of a more effective way to write code that allows for more lines of code written for the effort you exert? Let me know!&lt;/p&gt;

</description>
      <category>vim</category>
      <category>javascript</category>
      <category>productivity</category>
      <category>theory</category>
    </item>
  </channel>
</rss>
