[ORIGINAL CREATION] tact and skill of VIM

来源:互联网 发布:如何修改手机mac地址 编辑:程序博客网 时间:2024/05/22 15:37
####
: read  ! shell_command                 // VIM read in the output of shell_command

####
:1,$ ! shell_command                     // output the whole text as input to shell_command  and save the output of this shell_command to replace the original test
:0 ! date                                        // create a time stamp to the test

####
:g//S/,/^/s*$/join    // join each paragraph to a single line.

####
       matches                               equivalent ~
/d    digit                                     [0−9]
/D    non−digit                            [^0−9]
/x     hex digit                              [0−9a−fA−F]
/X    non−hex digit                     [^0−9a−fA−F]
/s    white space                         [       ]
/S    non−white characters        [^      ]
/l     lowercase alpha                  [a−z]
/L    non−lowercase alpha          [^a−z]
/u    uppercase alpha                 [A−Z]
/U    non−uppercase alpha        [^A−Z]
原创粉丝点击