Rabi Siddique
116 words
1 minutes
Using Vim for the First Time
2024-08-06

I was writing a blog on my Mac and, when I was about to push changes, I noticed my branches were diverged. This happened after I pulled some updates. I usually write blogs from my Linux machine.

While fixing the branch divergence, I encountered vim. I wasn’t too happy about this because my previous experiences with vim hadn’t gone well.

I’m more used to nano. For some reason, I couldn’t figure out how to save and exit in vim. After some googling, I found out that you need to press the esc key to enter command mode. Then, you type :wq to save and exit. Pretty neat, I guess. Learned something new today. :)

Further Reading#

Using Vim for the First Time
https://rabisiddique.com/posts/first-time-vim/
Author
Rabi Siddique
Published at
2024-08-06