Sorry for living under a rock, but what is vim?
It’s a text editor. It all began with the ed editor, which is very simple and does one thing, it edits files. Then someone extended it into the ex editor. Then someone added a new feature: being able to visually see the file you’re editing, which became vi, the visual editor. Then someone improved that, into vim. What began as an editor where you needed to be fluent in regular expressions but otherwise was simple, is now a very complex editor, moving the functionality of the old UNIX tools into the editor itself.
The first time I used VI I typed a few characters, then hit backspace to delete some characters. Backspace doesn’t delete characters. I closed VI and never opened it again.
But how did you close it?
Yeah yeah, brag about being able to close VI the first time of use…
You need to type
i
first to enter insert mode.Now I can’t exit HELPPP
^C^C
And you weren’t curious about how it worked? Not at all?
A million better alternatives exist. I was curious about them.
well, I am using vim, but I don’t know how to use vim.
Am I vimming?
If you dont know how to exit vim, then yes you are…
:what^C^C^C^Z^Z^C^ESCFFUUUUUUUUUU...
Yes, you vom.
They vom it.
Tried neovim a couple of times. Stopped after 10 or 15 mins. Anyone has useful tips to get used to vim/neovim?
Just get used to
- using movement (hjkl),
- going between insert and normal modes (i and esc),
- undoing (u from normal mode),
- and saving (:w and :wq).
Don’t try to do it all at first, just get comfortable with the essentials. You can even just stay in insert mode (the only mode in most editors) at first.
Keep a vim basics cheat sheet handy for a couple weeks as you’re building in muscle memory, then slowly work in more advanced techniques and combinations.
It doesn’t take long before you start having a lot of fun just manipulating text.
PS here’s a decently basic cheat sheet I found:
Emacs users be like
hides in Kate and a Codium-based IDE
i do all my vimming in visual studio code
https://marketplace.visualstudio.com/items?itemName=vscodevim.vim
unrepentant nano gang rise up