3 ms·
You might want VISUAL=view instead of VISUAL=vim, which will open vim in read-only mode (which is in line with the semantics of VISUAL).
by jmmv 3y ago
You might want VISUAL=view instead of VISUAL=vim, which will open vim in read-only mode (which is in line with the semantics of VISUAL).
- kps 3y agoHmm, `man 7 environ` on Linux says “The user's preferred utility to edit text files”, which matches my long-term understanding. The original distinction between `EDITOR` and `VISUAL` was that the latter need not work on a printing terminal. The name `VISUAL` comes from the `ex` command `:visual` — i.e, vi.