Substituting horizontal tab characters in vi

Christian Weisgerber naddy at mips.inka.de
Wed Jan 8 15:55:18 UTC 2020


On 2020-01-01, "Ronald F. Guilmette" <rfg at 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 at mips.inka.de


More information about the freebsd-questions mailing list