this post was submitted on 11 Jul 2024
55 points (95.1% liked)
Linux
48153 readers
637 users here now
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Rules
- Posts must be relevant to operating systems running the Linux kernel. GNU/Linux or otherwise.
- No misinformation
- No NSFW content
- No hate speech, bigotry, etc
Related Communities
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Try running this:
vimtutor
If you are already aware of hjkl, skip to the part where you learn motions:
/motion
Then look up surround (
ysw
is usually the command to surround a word,ys3w
the next 3 words, etc)It's pretty neat.
That is some very useful commands, thx! But I don't think I'll be using it often and hence I'll lose the skill. I know ctrl+vxs or f etc because I use them very often. Anything that I don't use is forgotten even if I'd use vim
Exactly! If you only have to edit small text files on a server once in a blue moon, nano is much less biomemory-heavy. But if you regularly write docs and code in l vim or neovim, it starts to pay off after a week or two.
I really enjoyed learning to quickly select and change entire words or lines, doing things like:
:%s/replace_this_text/with_that/g
Etc. If you enjoy that, you will soon get to a point where you miss the motions in your regular editor and install a vim extension in VS Code and stuff, just before fully switching to neovimThx! I'll check out neovim!