First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 62559
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Vim Maintainers <vim@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Ciaran McCreesh <ciaran.mccreesh@googlemail.com>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
vim-plugin-eclass-helpfiles.patch vim-plugin-eclass-helpfiles.patch patch Ciaran McCreesh 2004-09-01 15:38 0000 1.00 KB Details | Diff
vim-plugin-eclass-helpfiles.patch updated vim-plugin-eclass-helpfiles.patch patch Ciaran McCreesh 2004-09-01 17:48 0000 1.45 KB Details | Diff
vim-plugin-eclass-helpfiles.patch updated vim-plugin-eclass-helpfiles.patch patch Ciaran McCreesh 2004-09-02 07:23 0000 1.25 KB Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 62559 depends on: Show dependency tree
Show dependency graph
Bug 62559 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)







View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2004-09-01 15:00 0000
Would be nice if vim plugins which provided help files said so in an einfo.
Best way to handle this is probably to update pkg_postinst in the vim-plugin
eclass to check for a VIM_PLUGIN_HELPFILE and display a "This plugin provides a
help file. Please use :help $VIM_PLUGIN_HELPFILE for more information." or
somesuch...

------- Comment #1 From Ciaran McCreesh 2004-09-01 15:38:45 0000 -------
Created an attachment (id=38712) [edit]
vim-plugin-eclass-helpfiles.patch

Lets vim plugins specify VIM_PLUGIN_HELPFILES. For example:

VIM_PLUGIN_HELPFILES="align-manual align-maps"

gives an einfo like:

 *
 * This plugin provides documentation via vim's help system. To
 * view it, use:
 *     :help align-manual
 *     :help align-maps
 *

------- Comment #2 From Ciaran McCreesh 2004-09-01 17:48:15 0000 -------
Created an attachment (id=38717) [edit]
updated vim-plugin-eclass-helpfiles.patch

For plugins which don't provide a help file, we could use VIM_PLUGIN_HELPTEXT
to display a short usage message. So:

VIM_PLUGIN_HELPTEXT=( \
	"To use this plugin, press the tab key whilst in insert mode. Words" \
	"will be autocompleted as per ctrl+n. Completion mode can be changed" \

	"using ctrl+x. To insert an actual tab character, either use ctrl+v" \
	"tab or enter a space followed by a tab." \
	)

when no VIM_PLUGIN_HELPFILES is available will give:

 *  
 * To use this plugin, press the tab key whilst in insert mode. Words
 * will be autocompleted as per ctrl+n. Completion mode can be changed
 * using ctrl+x. To insert an actual tab character, either use ctrl+v
 * tab or enter a space followed by a tab.
 *  

------- Comment #3 From Ciaran McCreesh 2004-09-02 07:23:18 0000 -------
Created an attachment (id=38758) [edit]
updated vim-plugin-eclass-helpfiles.patch

As per Aron's suggestions, switch to using [[ ]] over [ ] and kill the array
syntax. Multiline strings can be used instead now.

------- Comment #4 From Ciaran McCreesh 2004-09-07 18:13:09 0000 -------
Eclass updated. Variables for most things in app-vim set.

First Last Prev Next    No search results available      Search page      Enter new bug