-/* $OpenBSD: options.c,v 1.29 2021/04/13 15:39:21 millert Exp $ */
+/* $OpenBSD: options.c,v 1.30 2024/02/12 16:42:42 job Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
{"shellmeta", NULL, OPT_STR, 0},
/* O_SHIFTWIDTH 4BSD */
{"shiftwidth", NULL, OPT_NUM, OPT_NOZERO},
+/* O_SHOWFILENAME */
+ {"showfilename",NULL, OPT_0BOOL, 0},
/* O_SHOWMATCH 4BSD */
{"showmatch", NULL, OPT_0BOOL, 0},
/* O_SHOWMODE 4.4BSD */
-.\" $OpenBSD: vi.1,v 1.83 2023/01/29 09:28:57 otto Exp $
+.\" $OpenBSD: vi.1,v 1.84 2024/02/12 16:42:42 job Exp $
.\"
.\" Copyright (c) 1994
.\" The Regents of the University of California. All rights reserved.
.\"
.\" @(#)vi.1 8.51 (Berkeley) 10/10/96
.\"
-.Dd $Mdocdate: January 29 2023 $
+.Dd $Mdocdate: February 12 2024 $
.Dt VI 1
.Os
.Sh NAME
is necessary.
.It Cm shiftwidth , sw Bq 8
Set the autoindent and shift command indentation width.
+.It Cm showfilename Bq off
+.Nm vi
+only.
+Display the file name on the colon command line.
.It Cm showmatch , sm Bq off
.Nm vi
only.
-/* $OpenBSD: vs_refresh.c,v 1.22 2016/01/30 21:31:08 martijn Exp $ */
+/* $OpenBSD: vs_refresh.c,v 1.23 2024/02/12 16:42:43 job Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994
/* If more than one screen in the display, show the file name. */
curlen = 0;
- if (IS_SPLIT(sp)) {
+ if (IS_SPLIT(sp) || O_ISSET(sp, O_SHOWFILENAME)) {
for (p = sp->frp->name; *p != '\0'; ++p);
for (ellipsis = 0, cols = sp->cols / 2; --p > sp->frp->name;) {
if (*p == '/') {