Re: Q&A: MSDOS SET command gave me some of my mapped commands
Christian Brabandt <[email protected]> Thu, 1 Jan 2026 15:54:44 +0100
| Newsgroups | gmane.editors.vim |
|---|---|
| Message-ID | <[email protected]> |
Please do not top poste. On Mi, 31 Dez 2025, Mark Manning wrote: > One last message. Plus zero did not work. Yes, it is acting as if it > were octal. Vim should not really do that as sometimes people do put > zeros in front of the number. (At least, this old fogey remembers when > people used to do that all of the time.) I am afraid that ship has sailed long ago. > Here is what works: > > str2nr( $value, $type ) > > So I used str2nr( $ext, 10 ) > > And that forced it to keep the number as 10. Just thinking aloud here > but it would be nice to have 0b for binary, 0c for octal, 0x for > hexadecimal, and 0d for decimal. But I guess no one wants to do that. > :-) :h expr-number Thanks, Christian -- Ingrate, n.: A man who bites the hand that feeds him, and then complains of indigestion. -- -- 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]. To view this discussion visit https://groups.google.com/d/msgid/vim_use/aVaKtE78zPujCmAi%40256bit.org.