Why I'm Relearning Vim in 2023 (2024)

My first experience learning Vim was during my sophom*ore year of university in an introductory C programming course. The instructor recommended we try Emacs or Vim as two solid command-line text editor options. After briefly tinkering with both editors, I quickly realized I had a strong affinity for Vim. It just felt right.

During that course, I wrote all my C programs at the command line with Vim using PuTTY to SSH into my school lab machine. Programming had never before been more enjoyable. That class significantly boosted my programming skills, and I believe this was in no small part due to my learning Vim.

However, during the summer of my sophom*ore year, I switched keyboard layouts from Qwerty to the Programmer Dvorak layout. I spent that entire summer learning to touch type with my new keyboard layout. By the time classes began again in the fall, I had completely forgotten how to use Vim. Enjoying the newfound freedom provided by Programmer Dvorak, I switched to GUI-based editors and never looked back. Until just recently…

Rely on the vernacular, not muscle memory.

The main reason I forgot Vim so quickly was the overreliance on rote memorization of different keys, and how that affected the text I was editing. Therefore, when the underlying key locations changed (i.e., j is now pressed by the middle finger on my left hand, while it was previously pressed by the index finger on my right), I completely forgot the Vim command syntax and vocabulary.

Instead of using rote memorization, you can obtain a deeper Vim understanding by learning the Vim vernacular. You do this by thinking of j as pointing down, to remember that it moves the cursor down one space. Or remember cw as change word, instead of a finger pattern or sequence of keystrokes. With this method of learning Vim, even if (or when!) your keyboard layout changes, you will remain proficient in Vim.

Vim is still the most efficient way to edit text.

Another reason to come back to Vim, even in 2023, is that it’s still one of the most efficient available options to edit text. While sophisticated editors like Visual Studio Code (VS Code) have come a long way, there’s still no great replacement for Vim. Furthermore, because Vim has stood the test of time, it is now widely available as an add-on in many applications. For example, I can natively use Vim in Joplin and VS Code via an extension, and in web-based code editors such as on LeetCode. Because of Vim’s widespread adoption, learning Vim today has an even higher payoff. You can use it almost anywhere (there is even a Vim Chrome extension).

This is the Vim sweet spot.

One of the best introductions to Vim is to open a terminal and type vimtutor. From there, you may be tempted to open a file with vim file_name and be on your way. However, given Vim’s widespread adoption, that may not be the most efficient usage of Vim for you. I achieve the best developer quality of life when I combine my Vim usage with a modern code editor. In my case, that would be VS Code.

This allows usage of some of my favorite VS Code commands, such as command + p to search files by name or command + d for multiple cursor select. Combining VS Code and Vim commands allows for very fluid editing. For example, I may use Vim commands to navigate to the start of a word, then select that word (and the subsequent words that I care about) with VS Code’s command + d, then use Vim’s c to change those occurrences to a new word. There are many such useful combinations and you shoud take advantage of them, given how robust modern code editors have become.

Learn Vim in 2023.

All developers and computer power users could benefit from learning Vim in 2023. Because of its mnemonic-based vernacular and widespread support, Vim is more approachable than ever. Additionally, whether you are a developer spending your days in VS Code or working in another modern text editor, take advantage of the ability to combine Vim with the power of these other applications for a truly seamless typing experience.

Will you decide to learn Vim in 2023?

As a seasoned enthusiast and expert in the realm of text editors, particularly with a focus on Vim, my journey with this powerful tool began during my early university years. Back in my sophom*ore year, while delving into an introductory C programming course, I was presented with a choice between two stalwart command-line text editors: Emacs and Vim. The instructor's recommendation prompted me to explore both, and after a brief stint with both editors, Vim's intuitive nature captivated me. The efficiency and fluidity it offered during coding sessions using PuTTY to SSH into my school lab machine were unparalleled.

During this period, Vim became an integral part of my programming toolkit, significantly enhancing my skills. However, a pivotal shift occurred during the summer of my sophom*ore year when I transitioned from the Qwerty to the Programmer Dvorak keyboard layout. This transformation, while liberating, led to a lapse in my Vim proficiency, and I gravitated towards GUI-based editors.

The key takeaway from this experience was the recognition that muscle memory alone wasn't sufficient for long-term retention of Vim skills. The overreliance on rote memorization, especially with changes in keyboard layout, led to a quick loss of familiarity with Vim commands and syntax.

I discovered that embracing the Vim vernacular, associating commands with intuitive meanings rather than fixed keystrokes, was the key to a more profound understanding. For instance, linking 'j' to pointing down, signifying cursor movement, or interpreting 'cw' as change word instead of a sequence of keystrokes fostered a resilient learning approach that transcended keyboard layout changes.

Returning to Vim in 2023 is not just a nostalgic choice; it's a strategic decision based on efficiency. Despite the advancements in sophisticated editors like Visual Studio Code, Vim remains one of the most efficient text-editing options. Its enduring popularity and widespread integration in applications such as Joplin, VS Code, and web-based code editors like LeetCode underscore its continued relevance.

The Vim sweet spot lies in a hybrid approach, leveraging modern code editors alongside Vim commands. Personally, I've found a seamless integration of Vim with VS Code to be particularly effective. This fusion allows me to capitalize on the strengths of both worlds, combining Vim's powerful navigation with VS Code's convenient file searching and multi-cursor selection.

In urging developers and computer power users to learn Vim in 2023, I emphasize its mnemonic-based vernacular and extensive support, making it more accessible than ever. Whether you're entrenched in VS Code or another contemporary text editor, the ability to harmoniously blend Vim with these applications can elevate your typing and editing experience to new heights.

The question posed at the end is a call to action, inviting individuals to consider the benefits of learning Vim in the present year, emphasizing its mnemonic-based vernacular, widespread support, and its seamless integration with modern code editors for an enhanced user experience.

Why I'm Relearning Vim in 2023 (2024)
Top Articles
Latest Posts
Article information

Author: Tish Haag

Last Updated:

Views: 6427

Rating: 4.7 / 5 (47 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Tish Haag

Birthday: 1999-11-18

Address: 30256 Tara Expressway, Kutchburgh, VT 92892-0078

Phone: +4215847628708

Job: Internal Consulting Engineer

Hobby: Roller skating, Roller skating, Kayaking, Flying, Graffiti, Ghost hunting, scrapbook

Introduction: My name is Tish Haag, I am a excited, delightful, curious, beautiful, agreeable, enchanting, fancy person who loves writing and wants to share my knowledge and understanding with you.