3 ms·
One of the things that changed my life recently, that I hadn't seen before: NeoVim has a NVIM_APPNAME variable that lets you change the app name. So when I wan
by rektide 4y ago
One of the things that changed my life recently, that I hadn't seen before: NeoVim has a NVIM_APPNAME variable that lets you change the app name.
So when I wanted to try AstroVim, I just set NVIM_APPNAME=astrovim, and dropped the files in ~/.config/astrovim instead of blowing up my existing (shitty) ~/.config/nvim.
I really wish the idea of configurable appnames was a part of the spec! (or a well-known extension!)
- kzrdude 4y agoIt's a very recent neovim feature, so it has not been around to discover for that long
- rektide 4y agoYes, it's only a month old! https://github.com/neovim/neovim/pull/22128 https://github.com/neovim/neovim/pull/22128 I actually have something similar in some of my old old projects. And I'd expect I ripped the idea off from somewhere. But I don't know who to cite. :(
- Oxodao 4y agoThanks for this tips! Didn't knew it either
- kps 4y agoHistorically a lot of programs would use argv[0] as their name. Vi-family editors do have an excuse not to do that, since vi uses its name for other purposes, e.g. `view` for readonly.