Saturday, January 30, 2010

concatenate with '.' or without

On Jan 29, 10:52 am, "Benjamin R. Haskell" <v...@benizi.com> wrote:
> On Fri, 29 Jan 2010, Bee wrote:
> > On Jan 29, 7:43 am, "Benjamin R. Haskell" <v...@benizi.com> wrote:
> > > ...
> > > :redir @a
> > > ...
> > How to save directly to a filename?
> > [...]
> > But this creates a file named savevimrc in $HOME
> > redir > savevimrc
> > How to expand savevimrc to the file name?
> :exe "redir > " . savevimrc

Will this always do the same?
:exe "redir >" savevimrc

From what I have read '.' concatenates without adding spaces,
whereas without using '.' a space will be added.

Is it just better to get the habit of using '.' ?

-Bill

--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php

No comments:

Post a Comment