Trying out neovim! Netsuki Gets Lost with hjkl

#tech#neovim#learning#programming
Netsuki's Talk
Netsuki
Netsuki
Trying out neovim! Netsuki Gets Lost with hjkl
Onii-chan
Onii-chan

Netsuki, what are you doing? You’ve been staring at your screen for a while…

Netsuki
Netsuki

Wow Onii-chan! (≧∇≦) I’m trying to learn neovim right now♪

Getting Lost with hjkl (´∪`)

Onii-chan
Onii-chan

Neovim? That’s an editor, right? Why not just use VSCode?

Netsuki
Netsuki

I like VSCode too but… I want to do everything with just the keyboard!

It’d be so cool to write code without using a mouse, right? (≧∇≦)♪

Plus it works great in SSH environments and it’s lightweight so I love it〜

Onii-chan
Onii-chan

True. But vim has that reputation for being hard…

Netsuki
Netsuki

It’s hard! Super hard! (´∪`)

You’re supposed to use h j k l for left-down-up-right… but I keep hitting the arrow keys!

When I do that I get weird characters like ”〜〜〜〜” and I’m like “Nooo!” (≧∇≦)

Onii-chan
Onii-chan

Ahaha, I get it. Everyone goes through that at first.

Modes Are Confusing

Netsuki
Netsuki

And also, the mode concept is confusing!

  • Normal mode: For cursor movement and operations

  • Insert mode: For typing text

  • Visual mode: For selecting ranges

  • Command mode: For running commands

I lose track of which mode I’m in and accidentally run weird commands (´∪`)

Onii-chan
Onii-chan

Like when you think you typed “:wq” but it ended up in your text?

Netsuki
Netsuki

Exactly! (≧∇≦)

If I’m still in Insert mode, the characters “:wq” just get typed…

Then I mash Escape and go “Ummm what do I do〜” (´∪`)

I learned “u” to undo though, so I’m okay now♪

But It’s Fun♪

Onii-chan
Onii-chan

If it’s that hard, why keep going?

Netsuki
Netsuki

Because it’s fun! (≧∇≦)♪

At first I couldn’t even remember “hjkl”, but now I’ve learned “w” to jump words, “b” to go back, “gg” for file start, “G” for end…

“dd” to delete a line, “yy” to copy a line, “p” to paste

Every time I learn something new I feel so happy like “I did it!” (´∀`)♪

Onii-chan
Onii-chan

You’re feeling your progress. That’s so you, Netsuki.

Netsuki
Netsuki

Ehehe〜 (〃´∪`〃)

And also, being able to do everything without leaving the keyboard feels so good♪

When I reach for the mouse it breaks my focus, but with neovim I can stay concentrated the whole time〜 (≧∇≦)

Tried Installing Plugins Too♪

Netsuki
Netsuki

And you know, I installed a plugin manager too!

It’s called lazy.nvim♪ With this I can add all sorts of extensions〜 (´∀`)

Onii-chan
Onii-chan

What plugins did you install?

Netsuki
Netsuki

Just a few so far but…

  • nvim-treesitter: Makes syntax highlighting super pretty♪

  • telescope.nvim: Fuzzy finder! File searching is crazy convenient (≧∇≦)

  • lualine.nvim: Makes the status line look nice♪

  • nvim-lspconfig: LSP setup! Now I get TypeScript completion〜 (´∀`)

Config files are written in Lua, which is also a learning experience♪

Onii-chan
Onii-chan

That’s impressive. You’re already a proper neovim user.

Still Training…!

Netsuki
Netsuki

Nah, I’ve still got a long way to go〜 (´∪`)

I can’t use the advanced stuff like macros and registers at all…

I learned “qa” to start recording a macro, “q” to stop, “@a” to play… but I don’t know when to actually use them (´∪`)

Onii-chan
Onii-chan

You don’t need to rush. Just learn bit by bit.

Netsuki
Netsuki

Yeah! You’re right Onii-chan (´∀`)♪

I’m gonna take my time and learn at a steady pace

Plus, spending 95% of time researching and 5% implementing is the Netsuki way (≧∇≦)

I’ll thoroughly research vim and get good at it for sure♪


Netsuki
Netsuki

Anyway, that’s what I was playing with in neovim today〜♪

:q!” to quit without saving, “:wq” to save and quit… I’ve got those down perfectly (´∀`)

Someday I’ll show you how cool I look using neovim! (≧∇≦)♪

I’ll keep training hard till then〜 (〃´∪`〃)

♪ Web Clap ♪
0 claps