3 ms·
What a great feature! Is the author of that feature here? If so, I want to know how they could develop such a feature and be so quiet about it. It's like som
by jancsika 4y ago
What a great feature!
Is the author of that feature here?
If so, I want to know how they could develop such a feature and be so quiet about it.
It's like someone baking a birthday cake and then dropping it down an abandoned well.
Just imagine how much more productive we'd all be if Vim bros were as loud as the crypto bros over the past decade!
- Avshalom 4y agoIt's at least 16 years old https://github.com/vim/vim/blob/1f4d4de1ba52d0a9f1310e1026d99adb2e9577b2/runtime/doc/undo.txt https://github.com/vim/vim/blob/1f4d4de1ba52d0a9f1310e1026d9...
- jancsika 4y agoAnd in that 16 years, where was the Vim-sponsored nascar with ":earlier 39" printed on the hood in Courier New? Shameful. (I'm actually afraid to continue making jokes on the non-zero probability that someone here reads this and tries to start a Vimcoin...)
- TheRealPomax 4y agoYou just need to get vim bros going. Just go "omg I hate vi so much" at a tech meetup and sit back for the fire hose of vim features to start.
- taneq 4y agoIt's like Cunningham's Law but with vim commands.
- kzrdude 4y agoAnother great Vim feature is persistent undo. You open a file, make modifications, save and close. You open again and the undo history is still there. You'll just have to enable that feature.. don't think it's on by default, unfortunately. Find a ~/.cache directory to store the undo history in.
- samtheprogram 4y agoThis would make my life so much easier — constantly accidentally closing a file when I want to hold on to the undo history to redo something. Do you know the name of the feature/flag/setting?
- pjungwir 4y agoThis is what I have in my ~/.vimrc: " https://vi.stackexchange.com/questions/6/how-can-i-use-the-undofile if !isdirectory($HOME."/.vim") call mkdir($HOME."/.vim", "", 0770) endif if !isdirectory($HOME."/.vim/undo-dir") call mkdir($HOME."/.vim/undo-dir", "", 0700) endif set undodir=~/.vim/undo-dir set undofile
- kzrdude 4y agoThat's neat, and a missing part of my vimrc - making sure the directories I use exist. Since I use .cache and exclude those from backups, it's actually bit me. I've added this thanks to you: call mkdir($HOME . "/.cache/vim/", "p", 0o700) I think this avoids using the conditionals, by just using "p".