Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 8 Jan 2020 15:53:31 -0000 (UTC)
From:      Christian Weisgerber <naddy@mips.inka.de>
To:        freebsd-questions@freebsd.org
Subject:   Re: Substituting horizontal tab characters in vi
Message-ID:  <slrnr1bunr.2ph0.naddy@lorvorc.mips.inka.de>
References:  <61189.1577922242@segfault.tristatelogic.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2020-01-01, "Ronald F. Guilmette" <rfg@tristatelogic.com> wrote:

> Quiet simply, it used to be possible to use vi to make substitutions for
> horizontal tab characters, say for example in the current line, by just
> typing : (colon) to get to the vi "command prompt" and then typing "s"
> (substitute command) followed by some delimiter, e.g. forward slash,
> and then just hitting the tab key on my keyboard, followed by a closing
> delimiter and then my substitution text followed by yet another closing
> delimiter.

The tab character is the default setting for the filec (file path
completion) option.  To disable this feature, set filec to an empty
string:

set filec=""

See vi(1), filec.  The default setting changed from empty to tab
with the update to nvi-2.

-- 
Christian "naddy" Weisgerber                          naddy@mips.inka.de



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?slrnr1bunr.2ph0.naddy>