diff options
author | 2015-11-24 10:28:14 +0000 | |
---|---|---|
committer | 2015-11-24 10:28:14 +0000 | |
commit | 79194af7439388d1ff8b89d151a560258c807b4f (patch) | |
tree | 6b4b8531daa33f3726b35da8fe12159151acc03c | |
parent | realloc* is designed so that NULL pointer = malloc. Ditch redundant code (diff) | |
download | wireguard-openbsd-79194af7439388d1ff8b89d151a560258c807b4f.tar.xz wireguard-openbsd-79194af7439388d1ff8b89d151a560258c807b4f.zip |
Turn on filename tab completion in vi by default.
From FreeBSD.
ok claudio@ tb@
-rw-r--r-- | usr.bin/vi/common/options.c | 3 | ||||
-rw-r--r-- | usr.bin/vi/docs/USD.doc/vi.man/vi.1 | 6 |
2 files changed, 5 insertions, 4 deletions
diff --git a/usr.bin/vi/common/options.c b/usr.bin/vi/common/options.c index c5347477ea6..361bafd4f56 100644 --- a/usr.bin/vi/common/options.c +++ b/usr.bin/vi/common/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.18 2014/11/14 20:27:03 tedu Exp $ */ +/* $OpenBSD: options.c,v 1.19 2015/11/24 10:28:14 bentley Exp $ */ /*- * Copyright (c) 1991, 1993, 1994 @@ -347,6 +347,7 @@ opts_init(SCR *sp, int *oargs) "directory=%s", (s = getenv("TMPDIR")) == NULL ? _PATH_TMP : s); OI(O_TMP_DIRECTORY, b1); OI(O_ESCAPETIME, "escapetime=1"); + OI(O_FILEC, "filec=\t"); OI(O_KEYTIME, "keytime=6"); OI(O_MATCHTIME, "matchtime=7"); (void)snprintf(b1, sizeof(b1), "msgcat=%s", _PATH_MSGCAT); diff --git a/usr.bin/vi/docs/USD.doc/vi.man/vi.1 b/usr.bin/vi/docs/USD.doc/vi.man/vi.1 index 4191fdaea50..0b54b8acd79 100644 --- a/usr.bin/vi/docs/USD.doc/vi.man/vi.1 +++ b/usr.bin/vi/docs/USD.doc/vi.man/vi.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: vi.1,v 1.61 2015/11/19 07:53:31 bentley Exp $ +.\" $OpenBSD: vi.1,v 1.62 2015/11/24 10:28:14 bentley Exp $ .\" .\" Copyright (c) 1994 .\" The Regents of the University of California. All rights reserved. @@ -14,7 +14,7 @@ .\" .\" @(#)vi.1 8.51 (Berkeley) 10/10/96 .\" -.Dd $Mdocdate: November 19 2015 $ +.Dd $Mdocdate: November 24 2015 $ .Dt VI 1 .Os .Sh NAME @@ -2315,7 +2315,7 @@ rather than basic regular expressions See .Xr re_format 7 for more information on regular expressions. -.It Cm filec Bq no default +.It Cm filec Bq Aq tab Set the character to perform file path completion on the colon command line. .It Cm flash Bq off Flash the screen instead of beeping the keyboard on error. |