Le mercredi 23 mai 2018 14:29:43 UTC+2, Ni Va a écrit :
> Hi,
>
>
> I build both 32 and 64 bits version of gvim but always 1 is returned when
> from 32bits or 64bits I do :
>
> echo has('num64')
> echo has('win32')
> echo has('win64')
>
> What the feature to differentiate the two built 32/64bits
>
> Thank
> you
> NiVa
Pass by redirecting :ver command to check running 32-bit or 64-bit
if has('win32')
" determine gvim 32 or 64-bit built running version
silent redir @v
silent exe 'ver'
silent redir END
if matchstr(@v,'32-bit')=='32-bit'
" lua
set luadll=lua54.dll
" ruby
set rubydll=msvcrt-ruby250.dll
let $path.=';'.dllPath.'/ruby/x86'
endif
if matchstr(@v,'64-bit')=='64-bit'
set rubydll=x64-msvcrt-ruby250.dll
let $path.=';'.dllPath.'/ruby/x64'
endif
endif
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.