diff options
author | Arun Prakash Jana <engineerarun@gmail.com> | 2017-03-31 22:25:56 +0530 |
---|---|---|
committer | Arun Prakash Jana <engineerarun@gmail.com> | 2017-03-31 22:25:56 +0530 |
commit | aeeeed0bceee9429caf770d0908ffcaf348a3f12 (patch) | |
tree | e8359edb10d8ed75e9b7401cd7bafdebd4107a64 /nnn.c | |
parent | 8563ec5cb28f43060eacac0d7b0f27ecee78c9fc (diff) | |
download | nnn-aeeeed0bceee9429caf770d0908ffcaf348a3f12.tar.gz |
Change vim to vi
Diffstat (limited to 'nnn.c')
-rw-r--r-- | nnn.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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); |