I just experienced some unexpected behaviour with a simple substitution
command and wonder if somebody could explain this to me.
Example text lines to be selected for my question:
o.......Open files, directories and bookmarks....................
go......Open selected file, but leave cursor in the NERDTree.....
t.......Open selected node/bookmark in a new tab.................
T.......Same as 't' but keep the focus on the current tab........
i.......Open selected file in a split window.....................
gi......Same as i, but leave the cursor on the NERDTree..........
s.......Open selected file in a new vsplit.......................
I know that
:'<,'>s/\.\+$//
would remove all trailing dots.
But why does
:'<,'>s/\./ /g
only change the first set of '.' of every line and not the trailing '.'?
I can't find any reason why this does not do the job
(: albeit a silly job, but that's irrelevant :)
I am using MacVim 7.3 (patches: 1-390, snapshot 64) dd 02/01/20112
by Bjorn Winckler (thanks Bjorn).
With kind regards,
Guido
--
We all declare for liberty, but in using the
same word we do not all mean the same thing.
-- Abraham Lincoln
http://vanhoecke.org ... and go2 places!
--
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:
Post a Comment