blob: 0ae3be266f67d67109816a05242974a29bca7217 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
Making GTK+ development in VIM more fun:
### Calling devhelp ###
To call the API documentation browser [devhelp](http://live.gnome.org/devhelp) on the identifier under the cursor you can use:
"call devhelp:
autocmd Filetype c nmap <silent> <C-K> :! devhelp -s "<cword>" &<CR><CR>
in you *~/.vimrc*. The above example uses CTRL-K since manual pages are shown
with SHIFT-K.
### Syntax highlighting ###
The Debian package *vim-syntax-gtk* offers syntax highlighting for [GTK+](http://gtk.org), Glib, Pango, DBus-glib and much more. To enable it run:
vim-addons -w install gtk-syntax
ln -s /usr/share/doc/vim-syntax-gtk/examples/c.vim ~/.vim/after/syntax/
|