deeJ
deeJ

Reputation: 672

Delete complete line after tab

I have a file in following format:

"Abu Road","ABR Rajasthan   NWR/North Western   260 m   [5]

I want to delete everything after the first tab. So the result will be:

"Abu Road","ABR Rajasthan

Using gVim on Windows.

Upvotes: 0

Views: 1010

Answers (2)

Kent
Kent

Reputation: 195049

you could in normal mode do:

0fTABD

Upvotes: 1

jaypal singh
jaypal singh

Reputation: 77095

This should work :

:%s/\t.*//

Upvotes: 7

Related Questions