emmet-vim icon indicating copy to clipboard operation
emmet-vim copied to clipboard

Navigating a pom.xml

Open nodingneu opened this issue 7 years ago • 5 comments

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.

nodingneu avatar Mar 17 '17 22:03 nodingneu

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

mattn avatar Mar 18 '17 11:03 mattn

What about moving to somewhere that isn't empty?

nodingneu avatar Mar 18 '17 15:03 nodingneu

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

mattn avatar Mar 18 '17 16:03 mattn

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

nodingneu avatar Mar 18 '17 16:03 nodingneu

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

mattn avatar Mar 18 '17 16:03 mattn