codekingpro/portable-devtools
114k
1" Vim filetype plugin file2" Language: MikroTik RouterOS Script3" Maintainer: zainin <z@wintr.dev>4" Last Change: 2021 Nov 145" 2024 Jan 14 by Vim Project (browsefilter)6 7if exists("b:did_ftplugin")8 finish9endif10let b:did_ftplugin = 111 12let s:save_cpo = &cpo13set cpo-=C14 15setlocal comments=:#16setlocal commentstring=#\ %s17setlocal formatoptions-=t formatoptions+=croql18 19let b:undo_ftplugin = "setlocal com< cms< fo<"20 21if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")22 let b:browsefilter = "RouterOS Script Files (*.rsc)\t*.rsc\n"23 if has("win32")24 let b:browsefilter ..= "All Files (*.*)\t*\n"25 else26 let b:browsefilter ..= "All Files (*)\t*\n"27 endif28 let b:undo_ftplugin ..= " | unlet! b:browsefilter"29endif30 31let &cpo = s:save_cpo32unlet! s:save_cpo33 34" vim: nowrap sw=2 sts=2 ts=8 noet:35 