Sample Header Ad - 728x90

How to change the default text editor in ranger?

30 votes
4 answers
76934 views
Currently, ranger will only open text files with nano, and I want it to open them with vim. As per the [Arch Wiki](https://wiki.archlinux.org/index.php/Ranger#Installation) I have tried adding has xdg-open, flag f = xdg-open "$1" ext txt = vim "$@" to rifle.conf, but that didn't work.
Asked by Display name (1337 rep)
May 26, 2017, 04:49 PM
Last activity: Nov 1, 2024, 11:30 AM