Jean Francois Bignolles wrote:

> Le mardi 4 mars 2014 10:54:15 UTC+1, Anton Bobrov a écrit :
> > > 'viewdir'       $XDG_CACHE_HOME/vim/view
> > 
> > My precious views are treated as "user specific non-essential data
> > files". Sweet.
> 
> You're right, 'viewdir' must be based on XDG_CONFIG_HOME
> instead of XDG_CACHE_HOME. I've fixed it in the revised patch.

I had a look at this.

First a small remark about the patch: 

        Places for your personal initializations:
-               Unix            $HOME/.vimrc or $HOME/.vim/vimrc
+               Unix            $HOME/.vimrc or $HOME/.vim/vimrc;
+                               with |+xdg_basedir| feature, it can also be
+                               $XDG_CONFIG_HOME/vim/vimrc (first place)

That should be $XDG_CONFIG_HOME/vim, without the /vimrc.

Problem with making this a compile-time feature is that if the binary is
shared with several users, or it's part of a precompiled package,
suddenly the user has to put his Vim files elsewhere.  This will quickly
lead to two different binaries, so that users can select the one that
fits them.

Making this a runtime option is problematic, since the changes are in
the default values.

This is far from ideal, I expect it to cause more trouble than it would
ever solve.  Who actually uses these $XDG_ variables?

Probably the only way is to ADD these $XDG_ directories, after the
current directories.  So that they only get used if the old directories
do not exist.  Then users getting a new binary will not notice a
difference, and are free to move their files to the new location, if
that is that they prefer.

In practice this probably means users would do:
        mv ~/.vim ~/.config/vim
        mv ~/.vimrc ~/.config/vim/vimrc

-- 
hundred-and-one symptoms of being an internet addict:
223. You set up a web-cam as your home's security system.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" 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_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui