Vim Tips Wiki
(Move categories to tip template)
(Remove html character entities)
 
Line 17: Line 17:
   
 
<pre>
 
<pre>
map &lt;silent&gt; z[ [[k:call ShowLine()&lt;CR&gt;``
+
map <silent> z[ [[k:call ShowLine()<CR>``
 
</pre>
 
</pre>
   

Latest revision as of 08:39, 29 September 2008

Tip 405 Printable Monobook Previous Next

created January 17, 2003 · complexity intermediate · author William Natter · version 6.0


I use [[ and its look-alikes a lot for browsing my C++ code. You can use ShowLine() and the following mapping to obtain something close to ShowBlockName (and it's pretty fast):

map <silent> z[ [[k:call ShowLine()<CR>``

References[]

Comments[]

ShowLine() is not built in to Vim.

Guessing from the vague original tip, I would say that this tip is meant to be a supplement to script#381 (ShowLine.vim).