vim rule

161 points · 21 comments · view on lemmy.world

21 Comments

jjj@lemmy.blahaj.zone · 34 pts · 179d

Fun fact: ctrl+Z does the same thing as u but in 4 more keystrokes because afterwards you have to type fg then press u. :3

(like and subscrib fr mor facts)

yellowbadbeast@lemmy.blahaj.zone · 27 pts · 179d (4 replies)

:x does the same thing as :wq but in one less keystroke :3

thenumbernine@infosec.pub · 6 pts · 179d

It just doesn't feel right though does it? And why are we here if not for the feels?

hellfire103@lemmy.ca · 3 pts · 179d

Huh, neat. Thanks!

Badabinski@kbin.earth · 2 pts · 178d (1 reply)

Or just do this: ZZ

I find it to be a bit faster than :x

yellowbadbeast@lemmy.blahaj.zone · 1 pts · 178d

Huh, I didn't know that. Neat!

javasux@lemmy.world · 10 pts · 179d (3 replies)

Fun fact: Ctrl+C (usually) does the same thing as the escape key, but requires way less hand movement

Opisek@piefed.blahaj.zone · 7 pts · 179d (1 reply)

That's why you remap your caps lock key to esc!

tb_@lemmy.world · 1 pts · 178d

I like my caps lock as a compose key

Paulemeister@feddit.org · 1 pts · 178d

Ctrl + [ also becomes Esc on most terminal emulators

husmus3274@lemmy.blahaj.zone · 5 pts · 179d (4 replies)

Get Undotree, thank me later 🙂

hellfire103@lemmy.ca · 4 pts · 179d (3 replies)

Whoa, where has this been all my life?

husmus3274@lemmy.blahaj.zone · 4 pts · 178d (2 replies)

Actually, the important part is undofile and undodir https://vi.stackexchange.com/q/6/59482

Pair it with a high undolevel and undoreload, now you'll never taste the tears of regret

chonglibloodsport@lemmy.world · 2 pts · 178d (1 reply)

Except me yesterday when my vim kept hanging on insert and then printing a bunch of errors from the undotree script. I had to empty my undodir to get it to play nice again. Not sure what happened there!

husmus3274@lemmy.blahaj.zone · 1 pts · 178d

A fair price to pay for not going with noob options like VS code 🥲

puppycat@lemmy.blahaj.zone · 5 pts · 179d

ฅ ⁠^ > ⁠ﻌ < ^ ⁠ฅ

supersquirrel@sopuli.xyz · 4 pts · 179d

space q q

aciddev@lemmy.blahaj.zone · 3 pts · 178d

Sorry, but I'm an Emacs gang, nowhere near as cool as you

FlowerFan@piefed.blahaj.zone · 3 pts · 178d

micro ftw

mathemachristian@lemmy.blahaj.zone · 3 pts · 178d

Looking forward to your emacs era

Jankatarch@lemmy.world · 3 pts · 178d

Step 1. !cargo install uwuify
Step 2. :0,$:!uwuify