diff options
Diffstat (limited to 'support/vim/ftplugin/gatstxt.vim')
-rw-r--r-- | support/vim/ftplugin/gatstxt.vim | 25 |
1 files changed, 25 insertions, 0 deletions
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 @@ | |||
1 | " Vim filetype plugin file | ||
2 | " Language: GatsTxt | ||
3 | |||
4 | " Only do this when not done yet for this buffer | ||
5 | if exists("b:did_ftplugin") | ||
6 | finish | ||
7 | endif | ||
8 | |||
9 | " Don't load another plugin for this buffer | ||
10 | let b:did_ftplugin = 1 | ||
11 | |||
12 | " Set format options -- allow comment formatting with gq, but disable | ||
13 | " other processing | ||
14 | " setlocal fo-=tcrowan2 fo+=q | ||
15 | setlocal fo-=t fo+=croql | ||
16 | |||
17 | " Set 'comments' to be the same as C/C++ | ||
18 | setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://,:# | ||
19 | |||
20 | " Win32 can filter files in the browse dialog | ||
21 | if has("gui_win32") && !exists("b:browsefilter") | ||
22 | let b:browsefilter = "Nango files (*.gtxt)\t*.gtxt\n" . | ||
23 | \ "All Files (*.*)\t*.*\n" | ||
24 | endif | ||
25 | |||