Vim plugin for better XML/HTML navigation?

前端 未结 2 1171
我在风中等你
我在风中等你 2021-02-05 16:52

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

2条回答
  •  醉话见心
    2021-02-05 17:25

    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
    

提交回复
热议问题