1 |
reader@×××××××.com writes: |
2 |
|
3 |
> do you know of a chart that shows the decimal notation like you |
4 |
> posted? (Its not in `man vga') |
5 |
> |
6 |
> And I don't recall where I got that from... where ever it was, it |
7 |
> probably also has the decimal equivalents. |
8 |
|
9 |
You can ignore this request... I found a nifty hex to decimal |
10 |
converter for vim here: |
11 |
http://vim.wikia.com/wiki/VimTip27 |
12 |
|
13 |
|
14 |
function! Hex2Dec() |
15 |
let lstr = getline(".") |
16 |
let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+') |
17 |
while hexstr != "" |
18 |
let hexstr = hexstr + 0 |
19 |
exe 's#0x[a-fA-F0-9]\+#'.hexstr."#" |
20 |
let lstr = substitute(lstr, '0x[a-fA-F0-9]\+', hexstr, "") |
21 |
let hexstr = matchstr(lstr, '0x[a-fA-F0-9]\+') |
22 |
endwhile |
23 |
endfunction |
24 |
|
25 |
-- |
26 |
gentoo-user@l.g.o mailing list |