From fb28f6800864176be2ffca29e8e664b641f33170 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 21 Dec 2009 18:04:02 +0000 Subject: m3 is copied into trunk, we should be good to go, now. --- support/vim/ftplugin/build.vim | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 support/vim/ftplugin/build.vim (limited to 'support/vim/ftplugin') diff --git a/support/vim/ftplugin/build.vim b/support/vim/ftplugin/build.vim new file mode 100644 index 0000000..6b24838 --- /dev/null +++ b/support/vim/ftplugin/build.vim @@ -0,0 +1,24 @@ +" Vim filetype plugin file +" Language: Build + +" Only do this when not done yet for this buffer +if exists("b:did_ftplugin") + finish +endif + +" Don't load another plugin for this buffer +let b:did_ftplugin = 1 + +" Set format options -- allow comment formatting with gq, but disable +" other processing +setlocal fo-=tcrowan2 fo+=q + +" Set 'comments' to be the same as C/C++ +setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,:// + +" Win32 can filter files in the browse dialog +if has("gui_win32") && !exists("b:browsefilter") + let b:browsefilter = "Build files (*.bld)\t*.bld\n" . + \ "All Files (*.*)\t*.*\n" +endif + -- cgit v1.2.3