aboutsummaryrefslogtreecommitdiff
path: root/support/vim/ftplugin/gatstxt.vim
blob: 0a2b911ef4961d939492843c2f4f51db9ceaf990 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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