How to Install the Gemini CLI on Ubuntu by Upgrading Node.js

I installed the Gemini CLI because I want to ask an AI questions without leaving my terminal. The installation requires Node.js v20 or newer, so I chose to install version 22, as it is the latest Long-Term Support (LTS) release, ensuring stability. Since the Node.js version in Ubuntu’s official repository is older, I had to add a new repository to install it. Here are the detailed steps I took to get it working: 1. Remove the old Node.js version First, you need to remove the outdated Node.js package that was installed from Ubuntu’s default repositories. Running sudo apt autoremove afterward is also a good idea to clean up any leftover … Read more

Studying Vim

You Can Execute Terminal Commands in Vim I’m currently working through Vim lessons, from the beginning up to lesson 5.1. I discovered that you can execute terminal commands directly within Vim—for example, using :!ls to list files.

Daily Vim Training

Practice Vim Today I practiced Vim using vimtutor, covering lessons from the beginning through Lesson 3.2. I reviewed basic movement keys, editing commands, and started understanding how operators and text objects work. It’s starting to feel more intuitive!

Understanding the “U” Undo Command in Vim

Understanding the “U” Undo Command in Vim Moving the Cursor to Another Line Breaks “U”‘s Behavior While practicing in Vimtutor‘s Undo lesson, I ran into a confusing issue: sometimes pressing “U” didn’t do anything. After some research, I learned that the “U” command only undoes changes made on the current line since the cursor moved to it. This means if you accidentally press “j” or “k” and move to another line—even briefly—then return, “U” won’t work as expected. It forgets the changes because the cursor left the line. Careful typing helps ensure “U” behaves as intended. As I continue learning Vim controls, I expect to encounter these problems less often.

How to Use Symbols with IME on Android Smartphones

You Can Access Major Symbols by Long-Pressing “.” in Gboard I used to worry about how to input symbols like “?” and “”” on my Android smartphone. After doing some research, I found that in Gboard, you can access many major symbols by long-pressing the period key (“.”). For example, long-pressing “.” gives you options like “?” and “””. Now, I feel much more comfortable typing in English!