On Tue, 24 Jan 2012, sinbad wrote:

hi,

i want to store certain variables in to a viminfo file, but i don't want to depend on the behavior of viminfo, for example, i had this variable which will be used to store some information while working on a c file and when i had opened a new empty c file and closed it, the earlier variable stored in viminfo file was wiped out.

so, i am planning to use a private vim info file and let my functions read and write, is it possible are there any built-in functions available, it will be helpful if you can point me into the right direction.

The :rviminfo and :wviminfo commands that I pointed you to before can both accept a [file] argument. If you just call :wv, it will write whatever the default .viminfo file should be. But, e.g.:

:wv ~/.my.special.viminfo

will write viminfo to that file.

See again:

:h viminfo-read-write
:h :rv
:h :wv

--
Best,
Ben

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

Reply via email to