commit f8da67e8340977371b6ec3114502ae8baa5dee1f from: Stefan Sperling via: Thomas Adam date: Wed Mar 01 14:29:44 2023 UTC fall back to vi(1) instead of ed(1) if neither EDITOR nor VISUAL are set ed users are reading files with their minds rather then their eyes, and might therefore be missing important visual clues we write into files before the user gets to edit them. Use of vi(1) ensures that such clues will not be missed. commit - a578d6ec6d3818f6a19379ef10e6def9dc71abb1 commit + f8da67e8340977371b6ec3114502ae8baa5dee1f blob - 06d9ba522ae0001bd8bb697df46c9c952023dd09 blob + 9cb98acdc62c43c067586b46563120f212d7a179 --- got/got.1 +++ got/got.1 @@ -3200,10 +3200,8 @@ The editor spawned by or .Cm got tag . If not set, the -.Xr ed 1 -text editor will be spawned in order to give -.Xr ed 1 -the attention it deserves. +.Xr vi 1 +text editor will be spawned. .El .Sh FILES .Bl -tag -width packed-refs -compact blob - 9d58d1d4f3c73ef9a8754f4cbf4e8532acff5a2a blob + 55eb6fc3bb3a107437298c1dcb8035cfdaa747b5 --- got/got.c +++ got/got.c @@ -307,7 +307,7 @@ get_editor(char **abspath) } if (*abspath == NULL) { - *abspath = strdup("/bin/ed"); + *abspath = strdup("/usr/bin/vi"); if (*abspath == NULL) return got_error_from_errno("strdup"); }