blob: 9cd0b1034443c4c6922a50c8abe02389822a45ca [file] [log] [blame]
Bram Moolenaar519cc552021-11-16 19:18:26 +00001" Vim filetype plugin file
2" Language: MikroTik RouterOS Script
3" Maintainer: zainin <z@wintr.dev>
4" Last Change: 2021 Nov 14
Doug Kearns93197fd2024-01-14 20:59:02 +01005" 2024 Jan 14 by Vim Project (browsefilter)
Bram Moolenaar519cc552021-11-16 19:18:26 +00006
7if exists("b:did_ftplugin")
8 finish
9endif
10let b:did_ftplugin = 1
11
12let s:save_cpo = &cpo
13set cpo-=C
14
15setlocal comments=:#
16setlocal commentstring=#\ %s
17setlocal formatoptions-=t formatoptions+=croql
18
19let b:undo_ftplugin = "setlocal com< cms< fo<"
20
21if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
Doug Kearns93197fd2024-01-14 20:59:02 +010022 let b:browsefilter = "RouterOS Script Files (*.rsc)\t*.rsc\n"
23 if has("win32")
24 let b:browsefilter ..= "All Files (*.*)\t*\n"
25 else
26 let b:browsefilter ..= "All Files (*)\t*\n"
27 endif
Bram Moolenaar519cc552021-11-16 19:18:26 +000028 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
29endif
30
31let &cpo = s:save_cpo
32unlet! s:save_cpo
33
34" vim: nowrap sw=2 sts=2 ts=8 noet: