From 0cce7a054ba818227494f4e48c129dde2cfc0e45 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sun, 10 Feb 2013 21:57:18 +0000 Subject: Added vim syntax highlighting for gatstxt format. --- support/vim/ftplugin/gatstxt.vim | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 support/vim/ftplugin/gatstxt.vim (limited to 'support/vim/ftplugin') diff --git a/support/vim/ftplugin/gatstxt.vim b/support/vim/ftplugin/gatstxt.vim new file mode 100644 index 0000000..0a2b911 --- /dev/null +++ b/support/vim/ftplugin/gatstxt.vim @@ -0,0 +1,25 @@ +" Vim filetype plugin file +" Language: GatsTxt + +" 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 +setlocal fo-=t fo+=croql + +" 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 = "Nango files (*.gtxt)\t*.gtxt\n" . + \ "All Files (*.*)\t*.*\n" +endif + -- cgit v1.2.3