summary refs log tree commit diff stats
path: root/doc/rifle.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/rifle.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/rifle.pod')
-rw-r--r--doc/rifle.pod8
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/rifle.pod b/doc/rifle.pod
index 7241f6b5..b4d76287 100644
--- a/doc/rifle.pod
+++ b/doc/rifle.pod
@@ -84,9 +84,15 @@ with ranger.  To obtain it, you need to run: C<ranger --copy-config=rifle>
 
 =over 8
 
+=item VISUAL
+
+Determines which editor to use for editing files.
+
 =item EDITOR
 
-Determines which editor to use for editing files (in the default F<rifle.conf>).
+Determines which editor to use for editing files if VISUAL is undefined or
+empty (in the default F<rifle.conf>). If both are undefined or empty, "vim" is
+used instead.
 
 =item PAGER