zoukankan      html  css  js  c++  java
  • xml editing in vi

    Auto complete tags

    xmledit

    installation: git clone https://github.com/sukima/xmledit.git, then make (unnecessary?)

    when you write "", it will be converted to ""; if you write ">", it will be converted to:

    use ":h xml-plugin.txt" for more functions;

    Note: xmledit is a file-type plugin, which means it will be loaded and only worked when editing a xml file. If you open a temporary buffer or a file without extension "xml", this plugin will not work;

    Comment

    NERD Commenter: installation: git clone http://github.com/scrooloose/nerdcommenter.git;

    ,c: toggle comments on current line;

    3,c: toggle comments 3 lines from current line;

    ,cy: copy selected texts before comment out;

    Ref: https://github.com/scrooloose/nerdcommenter

    Surrounding Texts

    vim-surround:

    installation: git clone git://github.com/tpope/vim-surround.git;

    Add Surroundings

    S in linewise visual mode:

    S<target> on

    results in:

    yss: add surroundings to a line:

    yss<task> on "hello world" results in hello world, yss" results in "hello world";

    ysiw: add surroundings to a word:

    ysiw" results in "hello" world;

    Change Surroundings

    cs...

  • 相关阅读:
    第32章 数据库的备份和恢复
    Perl 打印关键字上下行
    mysql select * into OUTFILE 不会锁表
    独享表空间 ibdata1
    sql 使用单引号
    Oracle 维护常用SQL
    Mysql 独享表空间
    Mysql Perl unload表数据
    PLSQL 拼接SQL
    begin和declare
  • 原文地址:https://www.cnblogs.com/darkmatter/p/3605680.html
Copyright © 2011-2022 走看看