r/ProgrammerHumor • • Apr 20 '15

vim

Post image
1.3k Upvotes

427 comments sorted by

View all comments

Show parent comments

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)