Tuesday, January 24, 2012

Re: Simple substitution question

Am 24.01.2012 15:02, schrieb Guido Van Hoecke:
> Hi Tim,
>
> On Tue, Jan 24, 2012 at 14:15, Tim Chase<vim@tim.thechases.com> wrote:
>> On 01/24/12 07:02, Guido Van Hoecke wrote:
>>> ...
>>> gi......Same as i, but leave the cursor on the NERDTree..........
>>> s.......Open selected file in a new vsplit.......................
>>> ...
>>> But why does
>>> :'<,'>s/\./ /g
>>> only change the first set of '.' of every line and not the trailing '.'?
>>
>> Are you sure you you transcribed that correctly?
>
> Yep, I wanted to replace every '.' with a space.
>
>> ...
>> PS: all this is assuming a default Vim without some ill-advised uses
>> of 'edcompatible' or 'gdefault'. But if you haven't set either of
>> these, then it shouldn't be an issue.
>
> I have not.
>
> I since found out that it is caused by some of my initialization
> settings, and I may investigate that in due and available time.

I'd especially check for 'edcompatible' and 'gdefault':
:h 'ed
:h 'gd

--
Andy

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: