Insert the control characters in Vi and Vim editors.

Today, I have found a file in which there were many control characters, so I need to replace it due to be detected correctly. But I have no idear about inputing the characters in the command mode. So I have searched the methods via internet, now I write it down for my next using.

 

First, input <ctrl>+V, you can see a character "^"; then you need to press the corresponding key following the next table. There are corresponding displays you can see in vim editor.

 

e.g. If you wanna to input ^@, you need to press the key in the next order. <Ctrl>V, then <Ctrl><Shift>@

 

ASCII TABLE for SPECIAL CODES in vi
DecOctHexSymbolvi DisplayKeypress
00000000NULL^@<ctrl><shift>@
00100101SOH^A<ctrl>A
00200202STX^B<ctrl>B
00300303ETX^C<ctrl>C
00400404EOT^D<ctrl>D
00500505ENQ^E<ctrl>E
00600606ACK^F<ctrl>F
00700707BEL^G<ctrl>G
00801008BS^H<ctrl>H
00901109HT^I<ctrl>I
0100120ALF<LF><ctrl>J
0110130BVT<VT><ctrl>K
0120140CFF^L<ctrl>L
0130150DCR^M<ctrl>M
0140160ESO^N<ctrl>N
0150170FSI^O<ctrl>O
01602010DLE^P<ctrl>P
01702111DC1^Q<ctrl>Q
01802212DC2^R<ctrl>R
01902313DC3^S<ctrl>S
02002414DC4^T<ctrl>T
02102515NAK^U<ctrl>U
02202616SYN^V<ctrl>V
02302717ETB^W<ctrl>W
02403018CAN^X<ctrl>X
02503119EM^Y<ctrl>Y
0260321ASUB^Z<ctrl>Z
0270331BESC^[<ctrl><esc>
0280341CFS^/<ctrl>V/
0290351DGS^]<ctrl><shift>]
0300361ERS^^<ctrl><shift>^
0310371FUS^_<ctrl><shift>_
1271777FDEL^?<ctrl>V<del>

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值