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

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

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: Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Gary Johnson
On 2018-02-02, Andrew Pennebaker wrote: > I would really like convenient access to ligatures in my word processing > software. Unfortunately, none of the major text editing applications appears > to > handle ligatures intelligently: Each of Emacs, Vim, Nano, MS Word, Google > Drive, Libre

xpath plugin completion

2018-02-02 Thread Ni Va
Hi, I search for a xpath plugin fast completion. I tried https://github.com/actionshrimp/vim-xpath.git but it lags vim on entering chars to set xpath expression. Thank you Niva -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you

Re: Partial current word under cursor

2018-02-02 Thread Tim Chase
> nnoremap s :%s/\<\(\)\>//g > > I was thinking that I would set the cursor where I need to insert > the new word, as in "get#Something" where # represents the cursor > and then I'd need to replace it like so: > s/\<\(left-of-cursor)\zs\ze(right-of-cursor)\>/whatever/g You might try something

Re: Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Erik Christiansen
On 02.02.18 16:31, Andrew Pennebaker wrote: > I would really like convenient access to ligatures in my word processing > software. Unfortunately, none of the major text editing applications > appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS > Word, Google Drive, Libre

Re: Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Tony Mechelynck
On Fri, Feb 2, 2018 at 11:47 PM, Gary Johnson wrote: > On 2018-02-02, Andrew Pennebaker wrote: > >> I would really like convenient access to ligatures in my word processing >> software. Unfortunately, none of the major text editing applications appears >> to >> handle

Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Andrew Pennebaker
Hello, I would really like convenient access to ligatures in my word processing software. Unfortunately, none of the major text editing applications appears to handle ligatures intelligently: Each of Emacs, Vim, Nano, MS Word, Google Drive, Libre Office, and InDesign type a dumb "ae" when the

Re: Neither Emacs nor Vim nor Nano handle ligature literal insertion well

2018-02-02 Thread Gary Johnson
On 2018-02-03, Tony Mechelynck wrote: > On Fri, Feb 2, 2018 at 11:47 PM, Gary Johnson wrote: > > On 2018-02-02, Andrew Pennebaker wrote: > > > >> I would really like convenient access to ligatures in my word processing > >> software. Unfortunately, none of the major text editing applications > >>

Partial current word under cursor

2018-02-02 Thread S
Hello! It's a standard practice of mine having to replace whole words with something else, very useful when coding.  I have the following mapping in my vimrc: nnoremap s :%s/\<\(\)\>//g which lets me just hit \+s and replace the current word under the cursor. Now I've found myself needing