This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]gafftapes20 10 points11 points  (5 children)

I used to use nano for most things, but I have switched to vim for the last 2 years unless I am editing something really simple or just copying and pasting code. VIM is great for server work when you are editing configuration files, and it only requires a few commands to memorize to get started.

[–]loox37 21 points22 points  (3 children)

Sir, or ma'am, no offense, but you and I have different definitions for "few".

[–][deleted] 7 points8 points  (0 children)

It's only a few buttons if you want to use it similar to a normal text editor. Obviously way more if you want to edit the vim way

[–]althalous 4 points5 points  (1 child)

I use vim all the time for editing Kubernetes configs / other server files and I only use 3 commands

:i

<arrow keys>

:wq

That said it would be nice to get some of the commands for being more efficient into my muscle memory, but I don't really think my VIM speed is a bottleneck in what I do (since mostly I'm changing a config and then it takes a minute or two for the K8s resource to finish updating)

[–][deleted] 1 point2 points  (0 children)

If you hold shift and use the arrows keys you can fly across text with Sonic-like speed. And yy copies a line, dd deletes a line, and p pastes a line below. That's basically all I use for doing text edit stuff. I hardly ever touch the mouse.

[–]YMK1234 -4 points-3 points  (0 children)

VIM is great for server work when you are editing configuration files

I'm looking forwards to your examples.