Wikia

Vim Tips Wiki

Jump to definition of entity under cursor

Talk0
1,610pages on
this wiki
Revision as of 05:47, July 13, 2012 by JohnBot (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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

Advertisement | Your ad here

Around Wikia's network

Random Wiki