Score:0

Edit GVim's Desktop File to Launch with Custom Config

ng flag

I've created a config file for GVim, which located at $HOME/.config/vim/gvimrc. And in my .zshenv I have export VIMINIT='let $MYVIMRC="$XDG_CONFIG_HOME/vim/gvimrc" | source $MYVIMRC'

On running gvim from the terminal, the application launches and loads the configuration, but running GVim from the application launcher doesn't load the configuration.

I edited /usr/share/applications/gvim.desktop so that the config file specified, and the changes look like:

TryExec=gvim -u /home/saurabh/.config/vim/gvimrc
Exec=gvim -u /home/saurabh/.config/vim/gvimrc -f %F

but it makes the GVim icon disappear from the application launcher.

The top of the file says:

The gvim.desktop file is generated by src/po/Makefile, do NOT edit. Edit the src/po/gvim.desktop.in file instead.

but I cant find the file gvim.desktop.in anywhere.

How can I launch GVim from application launcher so that it loads the custom config?

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.