读书人

VIM中惯用序列生成及数值转换

发布时间: 2013-01-21 10:15:39 作者: rapoo

VIM中常用序列生成及数值转换

"output A-Zexe "let i=65|while i<=90|put =printf('%c', i)|let i=i+1|endwhile""output '0-9A-F'exe "let i=0|while i<16|put =printf('%X', i)|let i=i+1|endwhile""ascii to numberecho char2nr('a')"number to asciiecho nr2char( 97 )"hex to dececho printf('%d', 0xff )"dec to hexecho printf('%X', 255)

读书人网 >其他相关

热点推荐