summaryrefslogtreecommitdiff
path: root/development/gtk+_development_with_vim.mdwn
diff options
context:
space:
mode:
authoragx <agx@web>2009-04-03 17:47:22 +0200
committerWiki User <wikwik@wiki.sigxcpu.org>2009-04-03 17:47:22 +0200
commit599dd4586d2c39d6e9b6aea89c1611d77b6081de (patch)
tree917e07e9194453b5c39f187f46e176420dde56ec /development/gtk+_development_with_vim.mdwn
parent1da7108e920a2dbe8536562282c82059ca545319 (diff)
rename gtk+_development_with_vim.mdwn to development/gtk+_development_with_vim.mdwn
Diffstat (limited to 'development/gtk+_development_with_vim.mdwn')
-rw-r--r--development/gtk+_development_with_vim.mdwn17
1 files changed, 17 insertions, 0 deletions
diff --git a/development/gtk+_development_with_vim.mdwn b/development/gtk+_development_with_vim.mdwn
new file mode 100644
index 0000000..0ae3be2
--- /dev/null
+++ b/development/gtk+_development_with_vim.mdwn
@@ -0,0 +1,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/
+