Fandom

Vim Tips Wiki

Jump to definition of entity under cursor

1,624pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

Tip 782 Printable Monobook Previous Next

created 2004 · complexity basic · author Aron Stansvik · version 5.7


This is what I use when reading/editing DTDs that make use of entities heavily:

:map <Leader>e yiw ?<!ENTITY % <C-R>"<CR>

That will map <Leader>e to search backwards for the definition of the entity under the cursor, then you can just CTRL-o back to where you were. Makes reading DTDs less painful.

CommentsEdit

Also on Fandom

Random Wiki