美文网首页
vim 高级替换

vim 高级替换

作者: 千羽之城88 | 来源:发表于2021-03-20 02:40 被阅读0次
    <table>
        <tbody>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td>1</td>
            <td>1</td>
            <td>1</td>
            <td>1</td>
        </tr>
        </tbody>
    </table>
    
    rml
    ugbm
    ugbmv
    upgbm-h
    upgbm-v
    uphygt-h
    uphygt-v
    uphysmjm-h
    uphysmjm-v
    upjisg-hq
    upjisr-hq
    upmhm-h
    upmhm-v
    upmsl-h
    upmsl-v
    uprml-h
    uprml-hq
    uprml-v
    upstht-h
    upstht-v
    upstsl-h
    upstsl-v
    urml
    urmlv
    gbm
    gbmv
    rml
    rmlv
    
    let i=54 | g/>1</s/1/\=getline(i)/ | let i+=1
    
    i=54 初始值
    s/1/=getline(i)/ 取得第54行内容
    <table>
        <tbody>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td>rml</td>
            <td>ugbm</td>
            <td>ugbmv</td>
            <td>upgbm-h</td>
        </tr>
        <tr>
            <td>upgbm-v</td>
            <td>uphygt-h</td>
            <td>uphygt-v</td>
            <td>uphysmjm-h</td>
        </tr>
        <tr>
            <td>uphysmjm-v</td>
            <td>upjisg-hq</td>
            <td>upjisr-hq</td>
            <td>upmhm-h</td>
        </tr>
        <tr>
            <td>upmhm-v</td>
            <td>upmsl-h</td>
            <td>upmsl-v</td>
            <td>uprml-h</td>
        </tr>
        <tr>
            <td>uprml-hq</td>
            <td>uprml-v</td>
            <td>upstht-h</td>
            <td>upstht-v</td>
        </tr>
        <tr>
            <td>upstsl-h</td>
            <td>upstsl-v</td>
            <td>urml</td>
            <td>urmlv</td>
        </tr>
        <tr>
            <td></td>
        </tr>
        <tr>
            <td>gbm</td>
            <td>gbmv</td>
            <td>rml</td>
            <td>rmlv</td>
        </tr>
        </tbody>
    </table>
    
    

    相关文章

      网友评论

          本文标题:vim 高级替换

          本文链接:https://www.haomeiwen.com/subject/zosicltx.html