Tuesday, April 2, 2013

How to determine where Vim will be writing special files?

I'm trying to write a plugin that will set the 'hidden' attribute in
Windows for:
swap files
undo files
backup files
viminfo file

Undo files have a nice undofile() function, and swap files have the
:swapname command (although that isn't as nice). Is there a similar way
to get the file name that will be used for the backup file, other than
parsing the 'backupdir' option? How about the .viminfo file? The help
pages list how the default directory is determined, but the user can
still use the -i option to override it.

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

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment