Vim插件更好的XML / HTML导航? [英] Vim plugin for better XML/HTML navigation?

查看:89
本文介绍了Vim插件更好的XML / HTML导航?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有人知道可以处理HTML或XML文件(最好是两者)上的父/子/兄弟元素之间的光标移动的Vim插件(最好是两者)。

I'm wondering if anybody knows of a Vim plugin that can handle cursor movement between parent/child/sibling elements on either HTML or XML files (preferably both).

推荐答案

我喜欢使用默认的移动和(可视)文本对象

I like to use the default movement and (visual) text objects

 vatatzc   # create a fold for second parent tag with all child elements

 yit6jvitp # yank this element child nodes and, 6 lines down, 
           # replace the element content with the yanked text

这篇关于Vim插件更好的XML / HTML导航?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆