r/ProgrammerHumor • • Apr 20 '15

vim

Post image
1.3k Upvotes

427 comments sorted by

View all comments

70

u/iLostMyAcc Apr 20 '15

I really don't know why people use vim. Can anyone explain it to me?

86

u/noop__ Apr 20 '15

Because it let's me modify text faster, and more precisely than any other text editor in existence. And the portability (console based, *nix) makes it so I can have the same text editing workflow on all of my machines including the several thousand headless servers I manage.

6

u/cheald Apr 20 '15

I've yet to meet a vim user who can code in fewer keystrokes than I can in Sublime.

It's boss for headless servers though.

0

u/[deleted] Apr 20 '15

[deleted]

1

u/gellis12 Apr 20 '15

With Vim, I can press option+space anywhere to have a terminal show up, then I can use Vim to edit the file I want. With Sublime, I need to touch my mouse to open the editor.

3

u/[deleted] Apr 20 '15

Can vim continue where I left off if I closed it without saving?

2

u/samling Apr 20 '15

Yes, vim will create a swap file that you can recover from.

0

u/[deleted] Apr 20 '15

[deleted]

2

u/j201 Apr 20 '15

You can save .swp files in any folder. See http://vim.wikia.com/wiki/Remove_swap_and_backup_files_from_your_working_directory

Also, you can use this: http://vimdoc.sourceforge.net/htmldoc/starting.html#views-sessions

Combining those with key bindings, autocommands, and so on should give you any 'restore' behaviour you want. No, it's not done for you out of the box, but that's not the vim way.

→ More replies (1)