Wikia

Vim Tips Wiki

Changes: Script:397

Edit

Back to page

(adjust Template:ScriptComments to remove id as no longer needed; minor tweaks)
(Change <tt> to <code>, perhaps also minor tweak.)
Line 2: Line 2:
   
 
==Comments==
 
==Comments==
 
 
It would be very awesome for a ToggleShowFunc command, so f1 could show/hide it
 
It would be very awesome for a ToggleShowFunc command, so f1 could show/hide it
 
--[[User:Halkeye|Halkeye]] 18:06, July 15, 2010 (UTC)
 
--[[User:Halkeye|Halkeye]] 18:06, July 15, 2010 (UTC)
   
==Comments==
+
----
 
 
On line 295 the definition of function '''ShowFuncFoldText''' missed the leading "s:".
 
On line 295 the definition of function '''ShowFuncFoldText''' missed the leading "s:".
   
 
Original:
 
Original:
+
<pre>
<code>
 
 
function! ShowFuncFoldText()
 
function! ShowFuncFoldText()
</code>
+
</pre>
   
 
Should be:
 
Should be:
+
<pre>
<code>
 
 
function! s:ShowFuncFoldText()
 
function! s:ShowFuncFoldText()
</code>
+
</pre>
   
 
It will generate error when no ctags binary is found:
 
It will generate error when no ctags binary is found:
+
<pre>
<code>
 
 
ShowFunc exting. (Cleaning up functions)
 
ShowFunc exting. (Cleaning up functions)
 
Error detected while processing /Users/tyuan/.vim/plugin/ShowFunc.vim:
 
Error detected while processing /Users/tyuan/.vim/plugin/ShowFunc.vim:
 
line 450:
 
line 450:
 
E130: Unknown function: s:ShowFuncFoldText
 
E130: Unknown function: s:ShowFuncFoldText
</code>
+
</pre>
 
 
--[[User:Dtyall|Dtyall]] 05:19, February 17, 2011 (UTC)
 
--[[User:Dtyall|Dtyall]] 05:19, February 17, 2011 (UTC)

Revision as of 09:52, July 14, 2012

Use this page to discuss script 397 ShowFunc

  • Add constructive comments, bug reports, or discuss improvements (see the guideline).
  • Do not document the script here (the author should do that on vim.org).
  • This page may be out of date: check the script's vim.org page above, and its release notes.

Comments

It would be very awesome for a ToggleShowFunc command, so f1 could show/hide it --Halkeye 18:06, July 15, 2010 (UTC)


On line 295 the definition of function ShowFuncFoldText missed the leading "s:".

Original:

 function! ShowFuncFoldText()

Should be:

 function! s:ShowFuncFoldText()

It will generate error when no ctags binary is found:

 ShowFunc exting.  (Cleaning up functions)
 Error detected while processing /Users/tyuan/.vim/plugin/ShowFunc.vim:
 line  450:
 E130: Unknown function: s:ShowFuncFoldText

--Dtyall 05:19, February 17, 2011 (UTC)

Around Wikia's network

Random Wiki