From f186e8877b360e0b523de75781c8f1d23301d350 Mon Sep 17 00:00:00 2001 From: toonn Date: Tue, 23 Jan 2018 17:27:48 +0100 Subject: 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 --- doc/rifle.pod | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'doc/rifle.pod') 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 =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). +Determines which editor to use for editing files if VISUAL is undefined or +empty (in the default F). If both are undefined or empty, "vim" is +used instead. =item PAGER -- cgit 1.4.1-2-gfad0