neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

routeros.vim (820B)


      1 " Vim filetype plugin file
      2 " Language:	MikroTik RouterOS Script
      3 " Maintainer:	zainin <z@wintr.dev>
      4 " Last Change:	2021 Nov 14
      5 "		2024 Jan 14 by Vim Project (browsefilter)
      6 
      7 if exists("b:did_ftplugin")
      8  finish
      9 endif
     10 let b:did_ftplugin = 1
     11 
     12 let s:save_cpo = &cpo
     13 set cpo-=C
     14 
     15 setlocal comments=:#
     16 setlocal commentstring=#\ %s
     17 setlocal formatoptions-=t formatoptions+=croql
     18 
     19 let b:undo_ftplugin = "setlocal com< cms< fo<"
     20 
     21 if (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  else
     26    let b:browsefilter ..= "All Files (*)\t*\n"
     27  endif
     28  let b:undo_ftplugin ..= " | unlet! b:browsefilter"
     29 endif
     30 
     31 let &cpo = s:save_cpo
     32 unlet! s:save_cpo
     33 
     34 " vim: nowrap sw=2 sts=2 ts=8 noet: