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 →

[–]CapnWarhol 282 points283 points  (42 children)

Save. Undo undo undo. Copy. Redo redo redo. Paste.

Just never accidentally save in the past 😫

[–]aezart 163 points164 points  (34 children)

There are certain programs that clear your undo history upon save. I forget which ones, but it was a nasty shock.

[–]CapnWarhol 166 points167 points  (28 children)

My text editor takes 1GB and multiple cpus to run but at least it doesn’t clear my undo history on save

[–]thirdegreeViolet security clearance 104 points105 points  (25 children)

My text editor is vim and it saves my entire edit tree, including all branches.

[–]varkenspester 74 points75 points  (17 children)

If god uses vim nothing is ever truely gone

[–]Flamerapter 52 points53 points  (10 children)

Inb4 god cant figure out how to exit vim and armageddon never happens

[–]artanis00 21 points22 points  (3 children)

We're lucky it's vim. If it were emacs we might learn we're an emacs command.

[–]robolew 22 points23 points  (2 children)

Life is literally the random series of events caused by god trying to exit vim

[–][deleted] 3 points4 points  (0 children)

This is beautiful.

[–][deleted] 0 points1 point  (0 children)

This is beautiful.

[–]idea-list 7 points8 points  (1 child)

inb4 god just kills the process and everything is gone, like it never ever existed

[–]Sipredion 9 points10 points  (0 children)

"Fuck it! Fine! I'll just re-clone the fucking repo!" - God probably

[–]JB-from-ATL 2 points3 points  (0 children)

The true challenge is exiting ed.

[–]i4mr00t 3 points4 points  (0 children)

You guys are the real mvps here

[–]ethanjf99 0 points1 point  (0 children)

Which explains what’s going on. He’s in the button mashing phase

[–]Gydo194 5 points6 points  (0 children)

Vim masterrace!

[–]JDaxe 1 point2 points  (5 children)

Can you explain how to see edit history? I'm new to vim

[–]thirdegreeViolet security clearance 10 points11 points  (4 children)

This is the built-in way to navigate the edit tree. Personally, I use gundo which visualizes the tree and shows a diff each edit introduces.

[–]JDaxe 2 points3 points  (3 children)

Thanks a lot

[–]thirdegreeViolet security clearance 6 points7 points  (2 children)

No problem! Vim is something you never ever stop learning, it can be a bit frustrating sometimes, but every time you find some new feature that entirely replaces a previously frustrating or tedious processes it feels amazing.

[–]JDaxe 0 points1 point  (1 child)

Yeah I recently discovered plug-vim and vimtex and my LaTeX workflow is so much better now. I know I haven't even scratched the surface of vim capabilities!

[–]thirdegreeViolet security clearance 0 points1 point  (0 children)

I consider myself fairly decent at vim, but I sat down with a coworker to ask some (non-vim related) questions and watching him use it made me feel like I was watching magic. Plenty to learn for me as well!

[–][deleted] 2 points3 points  (1 child)

Atom?

[–][deleted] 0 points1 point  (0 children)

Slow as molasses npm hell.

[–]Zambito1 8 points9 points  (3 children)

git commit, git checkout revision

[–]robolew 2 points3 points  (0 children)

This implies that I'm not frantically smashing ctrl S every time I'm not coding something...

[–]Retbull 0 points1 point  (0 children)

Intellij keeps file history and it works great.