Ranger: txt files open in Firefox even though text/plain is set to use Vim.desktop in mimeapps.list
Friends,
I have ranger configured to use xdg-open.
xdg-open xxx.txt from the terminal opens the file in vim as expected.
for some reason within Ranger, txt files are still opening in Firefox.
Any ideas?
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- cedoal
10 comments
How does your vim.desktop look like?
https://pastebin.com/KdNuDnta
Hmm I should have asked what de or wm your using and if its pure vim or not. I can see that's gvim right? I have my
nvim.desktopin~/.local/share/applicationsbut I use nvim so that's a bit different.I think that
rangerhas arifle.conffile that has all the settings to open files and things. Check the file formime textand I think you have to change the editor to whatever you use. Alsoman rifle.Have fun.
Looking more at this I think you should check if you have your
EDITORandVISUALenvironment variablesset togviminbashor whatever you use.
edit: env variables.
It's the standard file in usr/share/applications that vim creates on installation. Haven't changed it.
Try using the default rifle.conf file instead
Tried it. No go.