Search/replace (:%s/text/new text \t) to insert tab character (\t), inserts literal "\t" instead
See original GitHub issueBUG REPORT
What happened: I used the command in normal mode:
:%s/text-a/text-b\t>/g
Instead of of tab character the literal “\t” was inserted after “text-b”.
What did you expect to happen: A tab character should have been inserted after “text-b”. I tested in a normal vim and it works.
How to reproduce it (as minimally and precisely as possible): Just use the example above
Environment:
- Extension Version: 0.11.3
- OS Version: Windows_NT x64 10.0.16299
- VSCode version: 1.21.1
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (3 by maintainers)
Top Results From Across the Web
VSCode insert tab character manually - Stack Overflow
When I was using vim I'd use <Ctrl>+v <Tab> but that doesn't work with VSCode. I've been searching and searching and cannot find...
Read more >Insert TAB characters, but indent using spaces - Sublime Forum
I like to indent code using spaces, but sometimes I want to insert a literal TAB character in the middle of the line....
Read more >How to insert a tab character in sublime text? - Super User
First, I disable the Indent Using Spaces option via menu View → Indentation . Then, press Tab to insert a literal tab. After...
Read more >How to enter a tab character in gedit if replacement with ...
You can insert a literal Tab character in gedit by using the GNOME Unicode input mode: Ctrl + Shift + U. and then...
Read more >Find/Change - Adobe Support
A. Find/Change tabs B. Find a tab character C. Replace with an em dash ... the Text tab metacharacters begin with a ^...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
FYI you can switch to use neovim for these sorts of commands in the future, you might have better luck!
https://github.com/VSCodeVim/Vim#neovim-integration
For posterity:
VS Code Details: Version: 1.45.1 Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a Date: 2020-05-14T08:33:47.663Z Electron: 7.2.4 Chrome: 78.0.3904.130 Node.js: 12.8.1 V8: 7.8.279.23-electron.0 OS: Darwin x64 18.7.0
vscodevim version: 1.14.5