发布时间:2013-07-31 19:40:12
内核函数 ndelay, udelay, 以及 mdelay 对于短延时好用, 分别延后执行指定的纳秒数, 微秒数或者毫秒数. 它们涉及到的延时常常是最多几个毫秒。原型是:#include <linux/delay.h>void ndelay(unsigned long nsecs);void udelay(unsigned long usecs);void mdelay(unsigned long msecs); 有另一个方法获得毫秒(和更长)延.........【阅读全文】
发布时间:2013-06-07 12:49:38
es and tab if (!empty(line)) break endif let n = n - 1 endwhile " Delete all empty lines at the end of file let start = n+1+a:keep if (start < lastline) execute n+1+a:keep . "," . lastline . "d" endif " after clean spaces and tabs, jump back exec "normal " . lnum . "G" endfu.........【阅读全文】
发布时间:2013-06-07 12:48:03
"au VimLeave * mksession! $VIMRUNTIME/Session.vim "au VimLeave * wviminfo! $VIMRUNTIME/_viminfo "source $VIMRUNTIME/Session.vim "rviminfo $VIMRUNTIME/_viminfo "记录上次关闭的文件及状态 set viminfo='10,\"100,:20,%,n$VIMRUNTIME/_viminfo au BufReadPost * if line("'\"") > 0|if line("'\"") <= line.........【阅读全文】