> 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
Thank you Ben.
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
Santa Cruz, California
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment