svermeulen / vim-easyclip

Simplified clipboard functionality for Vim
693 stars 21 forks source link

Using "in tag" motion with m takes the opening tag's last angle bracket #120

Open ProfessorSalty opened 6 years ago

ProfessorSalty commented 6 years ago

The motion mit for "move in tag" does move everything in between the selected tag, but it also takes one angle bracket too many.

Example:

<footer>
    <p>Some text</p>
</footer>

With the cursor over <footer>, the motion mit should behave like cit, dit, etc and yank out everything in between the <footer> tag. The pipe will stand for cursor:

<footer>|</footer>

Instead, it does this:

<footer|</footer>