mattn / emmet-vim

emmet for vim: http://emmet.io/
http://mattn.github.io/emmet-vim
MIT License
6.41k stars 411 forks source link

Navigating a pom.xml #365

Open ghost opened 7 years ago

ghost commented 7 years ago

This says that it can work in xml files but I can't seem to navigate between tags.

Say I have this structure:

<dependency>
  <groupId>com.google</groupId>
  <artifactId>slides</artifactId>
  <version>1.0</version>
  <scope>system</scope>
  <systemPath>${basedir}/lib/lib.jar</systemPath>
</dependency>

Which my cursor on the first c in the second line (of com in com.google) how can I move to the first s in the next line?

How do I jump forwards to the next tag? I already tried <C-y> n which is the "move to next edit point" but it doesn't seem to work.

mattn commented 7 years ago
<dependency>
  <groupId>com.google</groupId>
  <artifactId>slides</artifactId>
  <version>1.0</version>
  <scope></scope>
  <systemPath>${basedir}/lib/lib.jar</systemPath>
</dependency>

<C-y> n should move <scope>|</scope> because it's empty.

ghost commented 7 years ago

What about moving to somewhere that isn't empty?

mattn commented 7 years ago

Currently, no way to do. I don't want to change the behavior.

ghost commented 7 years ago

Why not? I think it might be quite a useful thing to be able to do.

mattn commented 7 years ago

I'll add new command to do it (if I feel like)