Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to set editor used by Ranger

📅 2014-Sep-16 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ editor, ranger ⬩ 📚 Archive

You might find that Ranger uses Nano as editor when you open text files. It does this if the EDITOR environment variable is not set.

To make Ranger use a different editor to open text files, just set this environment variable.

For example, in the Fish shell, I set the editor to vim by adding a line to ~/.config/fish/config.fish:

set -x EDITOR vim

Tried with: Ranger 1.6.1 and Ubuntu 14.04


© 2023 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 Mastodon📧 Email