~dricottone/vim-markdown-preview

7826214df1cf0313ef074fe19712d015d49aaed3 — Matteo Cerutti 8 years ago a04c6a5
when running OSX, has('unix) returns true - this is now handled better.
1 files changed, 11 insertions(+), 9 deletions(-)

M plugin/vim-markdown-preview.vim
M plugin/vim-markdown-preview.vim => plugin/vim-markdown-preview.vim +11 -9
@@ 32,17 32,19 @@ endif

let g:vmp_osname = 'Unidentified'

if has('win32')
if has('win32') || has('win64')
  " Not yet used
  let g:vmp_osname = 'win32'
endif
if has('unix')
  let g:vmp_osname = 'unix'
endif
if has('mac')
  let g:vmp_osname = 'mac'
  let g:vmp_search_script = g:vmp_script_path . '/applescript/search-for-vmp.scpt'
  let g:vmp_activate_script = g:vmp_script_path . '/applescript/activate-vmp.scpt'
elseif has('unix')
  let s:uname = system("uname")

  if has('mac') || has('macunix') || has("gui_macvim") || s:uname == "Darwin\n"
    let g:vmp_osname = 'mac'
    let g:vmp_search_script = g:vmp_script_path . '/applescript/search-for-vmp.scpt'
    let g:vmp_activate_script = g:vmp_script_path . '/applescript/activate-vmp.scpt'
  else
    let g:vmp_osname = 'unix'
  endif
endif