lukerandall / haskellmode-vim

An unpacked copy of the haskellmode vimball. Ping me if it needs updating.
http://projects.haskell.org/haskellmode-vim/
BSD 3-Clause "New" or "Revised" License
135 stars 21 forks source link

permissions check when determining indexfiledir fails on ~ #2

Closed pbrisbin closed 9 years ago

pbrisbin commented 13 years ago

In the help doc, the example is given:

:let g:haddock_indexfiledir="~/.vim/"

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

pbrisbin commented 9 years ago

Closing since I think this is a mirror and not the right place to report issues anyway.