question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Search/replace (:%s/text/new text \t) to insert tab character (\t), inserts literal "\t" instead

See original GitHub issue

BUG 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:closed
  • Created 5 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xconvergecommented, Apr 1, 2018

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

0reactions
knetworxcommented, May 25, 2020

For posterity: Large GIF (574x310)

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

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found