At least on my system, vim does not correctly interpret the ~ in filewriteable() and it thinks "~/.vim" is not writable. Therefore, the index ends up placed in my $HOME (fallback).
I fixed this by simply specifying the full path "/home/me/.vim" in my .vimrc.
I'd ask that you change the doc, or do some sort of ~ substitution before calling filewriteable() to determine where to place the index.
In the help doc, the example is given:
At least on my system, vim does not correctly interpret the ~ in filewriteable() and it thinks "~/.vim" is not writable. Therefore, the index ends up placed in my $HOME (fallback).
I fixed this by simply specifying the full path "/home/me/.vim" in my .vimrc.
I'd ask that you change the doc, or do some sort of ~ substitution before calling filewriteable() to determine where to place the index.
Thanks