Team Ai
Datasetpublic

codekingpro/portable-devtools

sourceHugging Faceupdated 5mo agoView on Hugging Face
1likes14kdownloads
ps1xml.vim41 linesDownload Raw Back to ftplugin
1" Vim filetype plugin file2" Language:    Windows PowerShell3" URL:         https://github.com/PProvost/vim-ps14" Last Change: 2021 Apr 025"              2024 Jan 14 by Vim Project (browsefilter)6"              2024 May 23 by Riley Bruins <ribru17@gmail.com> ('commentstring')7 8" Only do this when not done yet for this buffer9if exists("b:did_ftplugin") | finish | endif10 11" Don't load another plug-in for this buffer12let b:did_ftplugin = 113 14let s:cpo_save = &cpo15set cpo&vim16 17setlocal tw=018setlocal commentstring=#\ %s19setlocal formatoptions=tcqro20 21" Change the browse dialog on Win32 and GTK to show mainly PowerShell-related files22if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter")23  let b:browsefilter = 24        \ "All PowerShell Files (*.ps1, *.psd1, *.psm1, *.ps1xml)\t*.ps1;*.psd1;*.psm1;*.ps1xml\n" .25        \ "PowerShell Script Files (*.ps1)\t*.ps1\n" .26        \ "PowerShell Module Files (*.psd1, *.psm1)\t*.psd1;*.psm1\n" .27        \ "PowerShell XML Files (*.ps1xml)\t*.ps1xml\n"28  if has("win32")29    let b:browsefilter .= "All Files (*.*)\t*\n"30  else31    let b:browsefilter .= "All Files (*)\t*\n"32  endif33endif34 35" Undo the stuff we changed36let b:undo_ftplugin = "setlocal tw< cms< fo<" .37      \ " | unlet! b:browsefilter"38 39let &cpo = s:cpo_save40unlet s:cpo_save41 
codekingpro/portable-devtools · Team Ai