X-Git-Url: http://git.draconx.ca/gitweb/vimconf.git/blobdiff_plain/c49de816d8043d222b94b39ce723fb0d28d03357..8214b90df1346ea4433e4593da86ca44686c376e:/ftplugin/gob.vim diff --git a/ftplugin/gob.vim b/ftplugin/gob.vim new file mode 100644 index 0000000..92919a3 --- /dev/null +++ b/ftplugin/gob.vim @@ -0,0 +1,26 @@ +" Vim filetype plugin file +" Language: GObject Builder (gob) +" Maintainer: Ding-Yi Chen +" Modified from cpp.vim +" Last Change: 2008 Feb 21 + + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Behaves just like C +runtime! ftplugin/c.vim ftplugin/c_*.vim ftplugin/c/*.vim + +" Let the matchit plugin know what items can be matched. + +runtime! macros/matchit.vim +if exists("loaded_matchit") + let b:match_ignorecase = 0 + let b:match_words = + \ '\:\:\:\:\:\' + " Ignore ":syntax region" commands, the 'end' argument clobbers if-endif + let b:match_skip = 'getline(".") =~ "^\\s*sy\\%[ntax]\\s\\+region" || + \ synIDattr(synID(line("."),col("."),1),"name") =~? "comment\\|string"' +endif