Skip to main content
added 146 characters in body
Source Link
padawin
  • 1.3k
  • 5
  • 8

You might want &, which is the original matched pattern:

:% s/^\(.*\)\t\(.*\)/&\2/g

Also, when you do a search (or a substitution), your search regex is stored in the register /, you can paste it for example with:

"/p

You might want &, which is the original matched pattern:

:% s/^\(.*\)\t\(.*\)/&\2/g

You might want &, which is the original matched pattern:

:% s/^\(.*\)\t\(.*\)/&\2/g

Also, when you do a search (or a substitution), your search regex is stored in the register /, you can paste it for example with:

"/p
Source Link
padawin
  • 1.3k
  • 5
  • 8

You might want &, which is the original matched pattern:

:% s/^\(.*\)\t\(.*\)/&\2/g