ft_ps1.txt 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. *ft_ps1.txt* A Windows PowerShell syntax plugin for Vim
  2. Author: Peter Provost <https://www.github.com/PProvost>
  3. License: Apache 2.0
  4. URL: https://github.com/PProvost/vim-ps1
  5. INTRODUCTION *ps1-syntax*
  6. This plugin provides Vim syntax, indent and filetype detection for Windows
  7. PowerShell scripts, modules, and XML configuration files.
  8. ABOUT *ps1-about*
  9. Grab the latest version or report a bug on GitHub:
  10. https://github.com/PProvost/vim-ps1
  11. FOLDING *ps1-folding*
  12. The ps1 syntax file provides syntax folding (see |:syn-fold|) for script blocks
  13. and digital signatures in scripts.
  14. When 'foldmethod' is set to "syntax" then function script blocks will be
  15. folded unless you use the following in your .vimrc or before opening a script: >
  16. :let g:ps1_nofold_blocks = 1
  17. <
  18. Digital signatures in scripts will also be folded unless you use: >
  19. :let g:ps1_nofold_sig = 1
  20. <
  21. Note: syntax folding might slow down syntax highlighting significantly,
  22. especially for large files.
  23. COMPILER *ps1-compiler*
  24. The powershell `:compiler` script configures |:make| to execute the script in
  25. PowerShell.
  26. It tries to pick a smart default PowerShell command: `pwsh` if available and
  27. `powershell` otherwise, but you can customize the command: >
  28. :let g:ps1_makeprg_cmd = '/path/to/pwsh'
  29. <
  30. To configure whether to show the exception type information: >
  31. :let g:ps1_efm_show_error_categories = 1
  32. <
  33. KEYWORD LOOKUP *ps1-keyword*
  34. To look up keywords using PowerShell's Get-Help, press the |K| key. For more
  35. convenient paging, the pager `less` should be installed, which is included in
  36. many Linux distributions and in macOS.
  37. Many other distributions are available for Windows like
  38. https://chocolatey.org/packages/less/. Make sure `less` is in a directory
  39. listed in the `PATH` environment variable, which chocolatey above does.
  40. ------------------------------------------------------------------------------
  41. vim:ft=help: