this post was submitted on 25 Dec 2023
658 points (100.0% liked)
196
16394 readers
1926 users here now
Be sure to follow the rule before you head out.
Rule: You must post before you leave.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
escape colon w q
escape colon w q
it is literally. the first result on google.
escape then Shift+Z twice also works. or shift+Z shift+Q to quit without saving.
Are you people allergic to search engines or someth--
siiiiiiiiigh
Yes, I'm an old man yelling at cloud, but Vim and Neovim are fantastic text editors that really are worth the half hour you'll spend running through the tutorial to learn them, and the subsequent two weeks you'll spend installing plugins and configuring it exactly to your liking. It really does make writing software more efficient and really doesn't deserve the reputation it gets from "vim is hard to exit lmao" memes made by people who haven't bothered to change their $EDITOR to nano, had it launch automatically when they tried to write a commit message, and instantly decided it was just yet another piece of arcane 80s Unix bullshit
vi isn't a text editor as much as it's a text manipulation language.
It has a syntax, grammar, idioms, and, yes, a learning curve.
But once you learn it, it's as close to a brain-computer interface as I've experienced. You start thinking about edits as chainable operations and it literally becomes muscle memory -- if you ask someone experienced with vi how they just did a complex sequence of edits, chances are they'll have to stop and consciously walk through it because they literally didn't have to think about it the first time.
got any online course recommendations? my college recommended missing semester for the basics of the basics, but i know there are so many more and other vim workflows (easy motions etc)
although i should first start getting into touch typing
In the terminal write ‘vimtutor’, that covers the basics.