Fandom

Vim Tips Wiki

ShowBlockName one-liner equivalent for one coding style

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 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>``

ReferencesEdit

CommentsEdit

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).

Also on Fandom

Random Wiki