Tuesday, October 25, 2011

Re: Please fix: make Windows Vim use same files as unix. No reason not to and it's confusing in mixed envirionments.

Hi,

Ben Fritz wrote:
>
> This is pretty much what I was proposing. I would extend it further.
> Something like this could be placed in vimrc_example.vim, which AFAIK
> is sourced by default in a brand-new Windows installation:
>
> " check for $HOME/.vim existing INSTEAD of $HOME/vimfiles, in case Vim
> users from Unix aren't paying attention
> if has("win32") && isdirectory(expand("$HOME")."/.vim") && !
> isdirectory(expand("$HOME")."/vimfiles")
> let &rtp = "$HOME/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/
> after,$HOME/.vim/after"
> endif
>
> (still untested...potentially as Gary says the RHS needs to be
> expanded)

no, there's no need for expansion. As I wrote in another mail -- which
Linda chose to ignore and preferred to go on ranting ;-) -- I have

set runtimepath=~/.vim,$VIM/vimfiles,$VIMRUNTIME,$VIM/vimfiles/after,~/.vim/after

in my .vimrc on Windows and this works.

Regards,
Jürgen

--
Sometimes I think the surest sign that intelligent life exists elsewhere
in the universe is that none of it has tried to contact us. (Calvin)

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

No comments: