Le dimanche 3 février 2019 12:03:40 UTC+1, [email protected] a écrit :
> Hi,
> 
> Can I do hexa numbers operations like shifting and masking in vimscript ?
> 
> let Address = 0x00000103
> 
> in C:
> Address & 0x000000FF should returns 0x00000003
> Address >> 8         should returns 0x00000001
>  
> in Vimscript ?
> 
> Thank you
> NiVa

Is this can be equivalent of the above masking operation ?

echo printf('0x%08X',address)[-2:-1]

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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" 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.

Reply via email to