From owner-freebsd-questions@freebsd.org Wed Jan 1 23:44:04 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 5A75B1E3E06 for ; Wed, 1 Jan 2020 23:44:04 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: from outgoing.tristatelogic.com (segfault.tristatelogic.com [69.62.255.118]) by mx1.freebsd.org (Postfix) with ESMTP id 47p76W1hMzz4WjS for ; Wed, 1 Jan 2020 23:44:02 +0000 (UTC) (envelope-from rfg@tristatelogic.com) Received: by segfault.tristatelogic.com (Postfix, from userid 1237) id 6BB744E71D; Wed, 1 Jan 2020 15:44:02 -0800 (PST) From: "Ronald F. Guilmette" To: freebsd-questions@freebsd.org Subject: Substituting horizontal tab characters in vi MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <61188.1577922242.1@segfault.tristatelogic.com> Date: Wed, 01 Jan 2020 15:44:02 -0800 Message-ID: <61189.1577922242@segfault.tristatelogic.com> X-Rspamd-Queue-Id: 47p76W1hMzz4WjS X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of rfg@tristatelogic.com designates 69.62.255.118 as permitted sender) smtp.mailfrom=rfg@tristatelogic.com X-Spamd-Result: default: False [-5.30 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[tristatelogic.com]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:14051, ipnet:69.62.128.0/17, country:US]; IP_SCORE(-3.00)[ip: (-7.88), ipnet: 69.62.128.0/17(-3.94), asn: 14051(-3.13), country: US(-0.05)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jan 2020 23:44:04 -0000 Yes, I'm a holdout. After all these years I still use vi. Why not? It works! But ever since "upgraded" to 12.0-RELEASE (from 9.1) I have been hitting my head on one annoying little problem with vi, and I wonder if anyone can tell me what the fix or workaround is. 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. Now this doesn't work anymore. Now, vi, while in "command mode" won't even allow me to hit the tab key anymore! It just sits there and blinks at me as if I hadn't touched the keyboard at all. Funny thing though, I just now checked and realized that I *can* still get it to perform substitutions for horizontal tab characters, but I have to go through some rather silly gyrations in order to even enter the horizontal tab character. Specifically, I have to type in cntrl-v followed by cntrl-i. So anyway, is there some way of restoring the old behavior so that I can go back to just using the tab key in a straiightforward and intutive fashion? Regards, rfg P.S. This is not a big problem, but I really do wish that people wouldn't break standard tools like vi as they are "upgrading" them.