Wednesday, September 1, 2010

Re: Writing a configuration file in vim script

On 2010-08-29, Gusman wrote:

> On Sun, Aug 29, 2010 at 5:05 PM, Tom Link wrote:
>
> > Currently I try to make my custom function in Vim, in this case I need to
> > create/write/read/delete a configuration file contains the global
> variable
> > value.
>
> I don't know if this is relevant for you, but to some extent you can
> use viminfo to save certain variables (all upper case names). See the
> '!' argument in :help 'viminfo'.
>
> Regards,
> Tom

> Hi,
>
> Currently I found a way to write/read/create/delete file by using python
> script.
> But is there significant difference between python script and original vim
> script?
>
> Until now, I only find to read and write a file using vim script, based on John
> information.

When Vim writes to file, it will also create that file if it doesn't
already exist, so there is no need for a separate create function.
To delete a file, see

:help delete()

Regards,
Gary

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