Re: Replace groups of dots by a tab

2018-02-02 Thread Bernard Fay
On Friday, February 2, 2018 at 2:17:27 PM UTC-5, Tim Chase wrote: > On 2018-02-02 10:45, Bernard Fay wrote: > > I have a file with a bunch of lines like the following one: > > > > AAE ..Above Aerodrome > > Elevation > > > > I would like to replace the dots

Re: Replace groups of dots by a tab

2018-02-02 Thread Tim Chase
On 2018-02-02 10:45, Bernard Fay wrote: > I have a file with a bunch of lines like the following one: > > AAE ..Above Aerodrome > Elevation > > I would like to replace the dots by a single tab. > > I tried the following substitutions but it does not work.

Re: Replace groups of dots by a tab

2018-02-02 Thread David Turetsky
Add a g at the end, otherwise it will only replace the first dot — David > On Feb 2, 2018, at 1:45 PM, Bernard Fay wrote: > > I have a file with a bunch of lines like the following one: > > AAE ..Above Aerodrome Elevation > > I

Replace groups of dots by a tab

2018-02-02 Thread Bernard Fay
I have a file with a bunch of lines like the following one: AAE ..Above Aerodrome Elevation I would like to replace the dots by a single tab. I tried the following substitutions but it does not work. %s/\.*/\t/ %s/[\.]*/\t/ vim keep seeing the dot in