博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
xml editing in vi
阅读量:4692 次
发布时间:2019-06-09

本文共 1131 字,大约阅读时间需要 3 分钟。

Auto complete tags

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

:

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...

转载于:https://www.cnblogs.com/darkmatter/p/3605680.html

你可能感兴趣的文章
快速排序
查看>>
洛谷P1044 栈(Catalan数)
查看>>
loj #6013. 「网络流 24 题」负载平衡
查看>>
linux tail 命令详解
查看>>
BZOJ-3207 花神的嘲讽计划Ⅰ
查看>>
BZOJ-1069 [SCOI2007]最大土地面积
查看>>
进程与线程的一个简单解释【摘】
查看>>
COJ976 WZJ的数据结构(负二十四)
查看>>
slid.es – 创建在线幻灯片和演示文稿的最佳途径
查看>>
2016年6月份那些最实用的 jQuery 插件专辑
查看>>
安卓截图
查看>>
如何在数据库中使用索引
查看>>
ring0
查看>>
windows虚拟机下 安装docker 踩过的坑
查看>>
使用 CXF 做 webservice 简单例子
查看>>
2017-2018-1 20155339 《信息安全系统设计基础》第8周学习总结
查看>>
socket.io 消息发送
查看>>
C# 两个datatable中的数据快速比较返回交集或差集
查看>>
没有body怎么添加onload事件
查看>>
Material使用05 MdListModule模块 MdButtonToggleModule模块
查看>>