Vim Lands XDG Base Directory Specification Support
(www.phoronix.com)
from Samueru@lemmy.ml to linux@lemmy.ml on 15 Apr 2024 18:55
https://lemmy.ml/post/14494400
from Samueru@lemmy.ml to linux@lemmy.ml on 15 Apr 2024 18:55
https://lemmy.ml/post/14494400
threaded - newest
This is the best summary I could come up with:
For fans of the Vim text editor, the latest development code has landed support for the XDG Base Directory “XDG_BASE_DIR” specification.
Rather than just dumping all configuration files / cache / data into the home directory folder, Vim can now respect the XDG Base Directory specification with regards to the directories such as for the XDG cache, configuration files, persistent data files, and state data files.
Vim will continue to work fine for environments not setting the XDG paths / environment variables.
The XDG_BASE_DIR support was merged this week after being under review and discussion since last month.
This closes a 7 year old bug report requesting Vim follow XDG_CONFIG_HOME specifications or the APPDATA path on Windows.
The original article contains 117 words, the summary contains 117 words. Saved 0%. I’m a bot and I’m open source!
This is pretty verbatim.
The bot says it ‘saved 0%’; so at least it’s honest.
It’ll be a cold day in hell before I give up my ~/.vimrc
FINALLY! :wq
Is that how we’re ending our comments ZZ
I never got used to doing wq over a simple
:x
I get that you can write and quit separately, and I do it when needed, but 95% of the time, there’s no need
My muscle memory causes :wq to be typed without my conscient intervention
what’s really dangerous is if you do a bunch of force quits in a row with
:q!
and then you start to get muscle memory for that and accidentally lose a whole document you were working onIf I lose it, I don’t need it
Software predeterminitism - If it were good code it would have saved itself.
wellllllll
I don’t think I’ve ever had to redo more than 15 mins of work due to this mistake, but it’s a dangerous road lol
You mean you don’t have muscle memory to obsessively save every time you stop typing?
Vi-ctory
RIP Bram
Now get the stupid ssh clients to do the same.
Relevant
Holy moly great news. There’s hope for our /home after all. I think Firefox has an open bug thread or request thread for XDG Base Directory that’s like …20 years old?
bugzilla.mozilla.org/show_bug.cgi?id=259356
20 indeed
I use this script with librewolf, give it a try, simply place it in
$HOME/.local/bin
name it librewolf and export that location as first in$PATH
:LMAO vim is such a garbage. GNU Emacs had XDG for years already. Do yourself a favor and switch to Emacs
But I like vim