Friday, January 29, 2010

Re: Single-column 'set'?

On Jan 29, 7:43 am, "Benjamin R. Haskell" <v...@benizi.com> wrote:
> ...
> :redir @a
> ...

How to save directly to a filename?

This works:

redir > savevimrc.txt

And the following does what I want:

let savevimrc=strftime('~/Desktop/%Y%m%d.%H%M%S-vimrc.txt')
echo savevimrc

But this creates a file named savevimrc in $HOME

redir > savevimrc

How to expand savevimrc to the file name?

--
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: