~dricottone/vim-markdown-preview

08491a2a7bc16b3f021dd93c61e2df89d7930d7d — Jamshed Vesuna 8 years ago 907dda0 + 7826214
Merge pull request #40 from m4ce/master

Refactor OS selection
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