aboutsummaryrefslogtreecommitdiffstats
path: root/nnn.c
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-31 22:25:56 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-03-31 22:25:56 +0530
commitaeeeed0bceee9429caf770d0908ffcaf348a3f12 (patch)
treee8359edb10d8ed75e9b7401cd7bafdebd4107a64 /nnn.c
parent8563ec5cb28f43060eacac0d7b0f27ecee78c9fc (diff)
downloadnnn-aeeeed0bceee9429caf770d0908ffcaf348a3f12.tar.gz
Change vim to vi
Diffstat (limited to 'nnn.c')
-rw-r--r--nnn.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nnn.c b/nnn.c
index 7234af8..9b42219 100644
--- a/nnn.c
+++ b/nnn.c
@@ -748,11 +748,11 @@ nochange:
/* Try custom applications */
bin = openwith(newpath);
- char *execvim = "vim";
+ char *execvi = "vi";
if (bin == NULL) {
/* If a custom handler application is not set, open
- plain text files with vim, then try fallback_opener */
+ plain text files with vi, then try fallback_opener */
FILE *fp;
char cmd[MAX_LEN];
int status;
@@ -768,7 +768,7 @@ nochange:
pclose(fp);
if (strstr(cmd, "ASCII text") != NULL)
- bin = execvim;
+ bin = execvi;
else if (fallback_opener) {
snprintf(cmd, MAX_LEN, "%s \"%s\" > /dev/null 2>&1",
fallback_opener, newpath);