Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
fix(vimrc): Support Windows Paths in .vimrc
Browse files Browse the repository at this point in the history
vim does not resolve symlinks on Windows (See vim issue 147). Using hard-coded references
to `~/.vim/janus/vim` when windows is detected until the vim issue is resolved.
  • Loading branch information
jayharris committed Apr 10, 2015
1 parent 859d474 commit 93385dd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions janus/vim/vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,13 @@
""

" Define paths
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ')
let g:janus_vim_path = escape(fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h"), ' ')
if has('win32') || has('win64') || has('win32unix')
let g:janus_path = expand("~/.vim/janus/vim")
let g:janus_vim_path = expand("~/.vim/janus/vim")
else
let g:janus_path = escape(fnamemodify(resolve(expand("<sfile>:p")), ":h"), ' ')
let g:janus_vim_path = escape(fnamemodify(resolve(expand("<sfile>:p" . "vim")), ":h"), ' ')
endif
let g:janus_custom_path = expand("~/.janus")

" Source janus's core
Expand Down

0 comments on commit 93385dd

Please sign in to comment.