licoded / self-study-drafts

buffer for records
0 stars 0 forks source link

vim go to end of current tag (when editing HTML/Vue/React files) #184

Open licoded opened 8 months ago

licoded commented 8 months ago

OR: Jump between HTML tags with just vim

Choice1: only use raw features of VIM

vat + Esc to get to the ending tag.

vato + Esc to get to the starting tag.

After vat you can also press o to jump back and forth between the start and the end.

Choice2: use plugins

matchit

Seems like matchit plugin will do the same by allowing you to jump with %

https://github.com/vim/vim/tree/master/runtime/pack/dist/opt/matchit

vim-matchup

I'd recommend using matchup these days, it's a modern replacement for matchit.

https://github.com/andymass/vim-matchup