annotate runtime/ftplugin/routeros.vim @ 34147:efe7982ac118

Added tag v9.1.0034 for changeset 23bb675796f066d27bdcdc42afdcedfe2d55e120
author Christian Brabandt <cb@256bit.org>
date Tue, 16 Jan 2024 17:30:11 +0100
parents 8ae680be2a51
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
1 " Vim filetype plugin file
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
2 " Language: MikroTik RouterOS Script
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
3 " Maintainer: zainin <z@wintr.dev>
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
4 " Last Change: 2021 Nov 14
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
5 " 2024 Jan 14 by Vim Project (browsefilter)
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
6
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
7 if exists("b:did_ftplugin")
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
8 finish
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
9 endif
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
10 let b:did_ftplugin = 1
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
11
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
12 let s:save_cpo = &cpo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
13 set cpo-=C
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
14
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
15 setlocal comments=:#
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
16 setlocal commentstring=#\ %s
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
17 setlocal formatoptions-=t formatoptions+=croql
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
18
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
19 let b:undo_ftplugin = "setlocal com< cms< fo<"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
20
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
21 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")
34134
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
22 let b:browsefilter = "RouterOS Script Files (*.rsc)\t*.rsc\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
23 if has("win32")
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
24 let b:browsefilter ..= "All Files (*.*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
25 else
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
26 let b:browsefilter ..= "All Files (*)\t*\n"
8ae680be2a51 runtime(ftplugin): Use "*" browsefilter pattern to match "All Files"
Christian Brabandt <cb@256bit.org>
parents: 26148
diff changeset
27 endif
26148
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
28 let b:undo_ftplugin ..= " | unlet! b:browsefilter"
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
29 endif
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
30
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
31 let &cpo = s:save_cpo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
32 unlet! s:save_cpo
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
33
624439a39432 Update runtime files
Bram Moolenaar <Bram@vim.org>
parents:
diff changeset
34 " vim: nowrap sw=2 sts=2 ts=8 noet: