On line 118, execute 'normal l' screws up because I use a dvorak keyboard layout and remapped my movement to dhtn. Changing this to normal n corrected the problem, but that won't work for everyone since keybindings vary across the board
execute 'normal l'
Here's my stab at refactoring it to work independently of keybindings:
" 1: empty tag, 2: empty attribute, 3: empty line
let n = search('><\/\|\(""\)\|\(^\s*$\)', 'Wp')
if n == 3
let p = getpos(".")
let p = p + 1
call setpos(".", p)
If I knew how to generate a patch or figure out pull requests, I'd offer it; I hope this is satisfactory. This plugin is great, btw! I can't wait to integrate it with my workflow. Thanks for reading.
EDIT: corrected execute setpos to call setpos.
Looks like the accepted Pull Request from my fork didn't close this issue, so I'll close it myself. Thanks for accepting the code!