Wikia

Vim Tips Wiki

Changes: Jump to definition of entity under cursor

Edit

Back to page

(Adjust previous/next navigation)
(Change <tt> to <code>, perhaps also minor tweak.)
 
Line 4: Line 4:
 
|previous=781
 
|previous=781
 
|next=784
 
|next=784
|created=September 5, 2004
+
|created=2004
 
|complexity=basic
 
|complexity=basic
 
|author=Aron Stansvik
 
|author=Aron Stansvik
Line 18: Line 18:
 
</pre>
 
</pre>
   
That will map <tt><Leader>e</tt> 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.
+
That will map <code><Leader>e</code> 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.
   
 
==Comments==
 
==Comments==

Latest revision as of 05:47, July 13, 2012

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

Around Wikia's network

Random Wiki