summary refs log tree commit diff stats
path: root/doc/ranger.pod
diff options
context:
space:
mode:
authortoonn <toonn@toonn.io>2018-01-23 17:27:48 +0100
committertoonn <toonn@toonn.io>2018-01-23 23:08:20 +0100
commitf186e8877b360e0b523de75781c8f1d23301d350 (patch)
tree0eebcba5a670847a374932b8dbf6be8bc4e9fff0 /doc/ranger.pod
parent0a75fdb06980c72a2ed58f65495ab0f02fae2506 (diff)
downloadranger-f186e8877b360e0b523de75781c8f1d23301d350.tar.gz
Prefer VISUAL to EDITOR
`VISUAL` is often misused to mean desktop GUI editor it's actual purpose
was to distinguish editors like `vi` (which is short for visual) from
editors like `ed` (which was probably short for editor), `EDITOR` is
actually intended to point to one of the latter.

Rifle still defaults to `vim` if both variables are undefined, even
with an old `rifle.conf` after trying to fall back on `EDITOR`.

For some better information on this see,
https://unix.stackexchange.com/a/334022
Diffstat (limited to 'doc/ranger.pod')
-rw-r--r--doc/ranger.pod10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/ranger.pod b/doc/ranger.pod
index 43926f46..1260c8db 100644
--- a/doc/ranger.pod
+++ b/doc/ranger.pod
@@ -423,7 +423,7 @@ Inspect the current file in a bigger window.
 
 =item E
 
-Edit the current file in $EDITOR ("nano" by default)
+Edit the current file in $VISUAL otherwise $EDITOR otherwise "vim"
 
 =item S
 
@@ -1566,9 +1566,15 @@ If this variable is set to FALSE, ranger will not load the default rc.conf.
 This can save time if you copied the whole rc.conf to ~/.config/ranger/ and
 don't need the default one at all.
 
+=item VISUAL
+
+Defines the editor to be used for the "E" key.  Falls back to EDITOR if
+undefined or empty.
+
 =item EDITOR
 
-Defines the editor to be used for the "E" key.  Defaults to "nano".
+Defines the editor to be used for the "E" key if VISUAL is undefined or empty.
+Defaults to "vim".
 
 =item SHELL