1、vim中的数字键的解决:
修改.vimrc,添加一下一段,即可工作了。
"To have the numeric keypad working with putty / vim
:imap <Esc>Oq 1
:imap <Esc>Or 2
:imap <Esc>Os 3
:imap <Esc>Ot 4
:imap <Esc>Ou 5
:imap <Esc>Ov 6
:imap <Esc>Ow 7
:imap <Esc>Ox 8
:imap <Esc>Oy 9
:imap <Esc>Op 0
:imap <Esc>On .
:imap <Esc>OQ /
:imap <Esc>OR *
:imap <Esc>Ol +
:imap <Esc>OS -
2、numlock开机自动亮起来。
在/etc/rc.local启动脚本中增加一句
setleds -D +num
保存退出,roboot。ok,收工。
#1