After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 557795 - Add assistant/search plugin for VIM
Add assistant/search plugin for VIM
Product: devhelp
Classification: Applications
Component: General
git master
Other All
: Normal enhancement
: ---
Assigned To: Richard Hult
Richard Hult
Depends on:
Reported: 2008-10-24 17:41 UTC by Jannis Pohlmann
Modified: 2008-10-28 13:50 UTC
See Also:
GNOME target: ---
GNOME version: ---

The VIM plugin (2.93 KB, text/plain)
2008-10-24 17:43 UTC, Jannis Pohlmann
Improved, configurable version of the plugin (3.55 KB, text/plain)
2008-10-25 15:26 UTC, Jannis Pohlmann

Description Jannis Pohlmann 2008-10-24 17:41:04 UTC
I've written a VIM plugin for devhelp. It updates the devhelp assistant window while you are typing and can launch 'devhelp -s' when a certain key is pressed.
Comment 1 Jannis Pohlmann 2008-10-24 17:43:03 UTC
Created attachment 121297 [details]
The VIM plugin

This is the plugin. It has one small bug which I couldn't figure out. When you press F7 in insert mode at the beginning of a line, the cursor will be moved to the right. Pressing F7 in all other columns works though. I think that's a minor issue that can be fixed later.
Comment 2 Jannis Pohlmann 2008-10-25 15:26:22 UTC
Created attachment 121348 [details]
Improved, configurable version of the plugin

This is an improved version of the plugin. The plugin is more configurable in .vimrc now.

To enable devhelp search:
  let g:devhelpSearch=1

To enable devhelp assistant:
  let g:devhelpAssistant=1

To change the update delay (e.g. to 150ms):  
  set updatetime=150

To change the search key (e.g. to F5):
  let g:devhelpSearchKey = '<F5>'

To change the length (e.g. to 5 characters) before a word becomes relevant:
  let g:devhelpWordLength = 5
Comment 3 Richard Hult 2008-10-28 13:50:22 UTC
Thanks! Committed to trunk.