Skip to content

Can I insert a tab in the replace text ? eg. -or '$1\t$2' #1953

Answered by BurntSushi
Binger-cn asked this question in General
Discussion options

You must be logged in to vote

You can, but you have to insert it literally. The replacement directive doesn't support escape sequences. Inserting it literally depends on your terminal/shell environment. In my environment, if I hit CTRL-v, release it, and then press TAB, it will insert a literal tab character.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BurntSushi
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants