• Stars
    star
    319
  • Rank 130,789 (Top 3 %)
  • Language
    Vim Script
  • Created over 12 years ago
  • Updated 7 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A Vim plugin for Windows PowerShell support

ps1.vim

If you are a Windows PowerShell user who uses Vim or Gvim for editing scripts, then this plugin is for you.

It provides nice syntax coloring and indenting for Windows PowerShell (.ps1) files, and also includes a filetype plugin so Vim can autodetect your PS1 scripts.

Includes contributions by:

  • Tomas Restrepo
  • Jared Parsons
  • Heath Stewart
  • Michael B. Smith
  • Alexander Kostikov

Installation

Copy the included directories into your .vim or vimfiles directory.

Or even better, use pathogen.vim and simply pull it in like this:

cd ~/.vim/bundle
git clone https://github.com/PProvost/vim-ps1.git

If you use vim-plug add this to your config:

Plug 'pprovost/vim-ps1'

Folding

The ps1 syntax file provides syntax folding for script blocks and digital signatures in scripts.

When 'foldmethod' is set to "syntax" then function script blocks will be folded unless you use the following in your .vimrc or before opening a script:

:let g:ps1_nofold_blocks = 1

Digital signatures in scripts will also be folded unless you use:

:let g:ps1_nofold_sig = 1

Note: syntax folding might slow down syntax highlighting significantly, especially for large files.

Comments and Suggestions

Please follow, fork or submit issues on GitHub and if you find it useful, please vote for it on vim.org.

License

Copyright 2005-2012 Peter Provost

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Version History

  • v2.10 (2013-06-24) Added Heath Stewart's here strings fix
  • v2.9 (2012-03-08) Included tomasr's changes
  • v2.81 (2012-03-05) Fixed a dumb typo
  • v2.8 (2012-03-05) Better number scanning, multiline comments, missing keywords and constants
  • v2.7 (2008-09-22) Begin, process & end keywords. Better highlighting of foreach and where
  • v2.6 (2007-03-05) Added unary -not operator
  • v2.5 (2007-03-03) Updates for here-strings, comment todos, other small cleanups
  • v2.4 (2007-03-02) Added elseif keyword
  • v2.3 (2007-02-27) Added param keyword
  • v2.2 (2007-02-19) Missing keywords
  • v2.1 (2006-07-31) Update for renaming
  • v2.0 (2005-12-21) Big update from Jared Parsons
  • v1.3 (2005-12-20) Updates to syntax elements
  • v1.2 (2005-08-13) Fix foreach and while problem
  • v1.1 (2005-08-12) Initial release

More Repositories

1

AutoHotKey

My AHK scripts
AutoHotkey
62
star
2

AssertEx

AssertEx - a set of simple assert extensions to give you more choices and easier to read tests.
PowerShell
29
star
3

dotfiles

My personal dotfiles for vim and other tools
PowerShell
25
star
4

vim-markdown-jekyll

A simple syntax plugin for editing Jekyll enhanced markdown
Vim Script
19
star
5

www.peterprovost.org

Source for my personal Octopress-based blog
Ruby
6
star
6

lazviter

A wow addon for ad-hoc raid and event invitations
Lua
4
star
7

PS360ProDrummer

My fork of the ps360prodrummer project from http://code.google.com/p/ps360prodrummer/
C#
4
star
8

ESP32_RCCar_Lights_Controller

My attempt at an inexpensive, remote controllable, DIY lights controller (headlights, brake lights, turn signals, etc.) for RC Cars.
C++
3
star
9

grunt

A warcraft addon that does those dumb menial tasks you hate doing yourself.
Lua
3
star
10

qtrackerposition

Wow addon to reposition my Quest and Achievement trackers/watchers
Lua
2
star
11

weechat-scripts

A collection of weechat scripts I've created
Lua
2
star
12

broker_combatlogtoggle

A LDB plugin for toggling the display of the combat log
Lua
2
star
13

ouf_quaiche

WowAddon - Player and Target blocks for oUF_Quaiche
Lua
2
star
14

nobetterblizzoptions

Warcraft addon - prevents LibBetterBlizzOptions from loading
Lua
2
star
15

Centralduino

A sample app and framework for very simple, quick development of IoT Devices. NOTE: Currently only supports ESP8266 but others will be added in the future or can be adapted as needed.
C++
2
star
16

QLayout

WowAddon - My personal chatframe/worldframe layout
Lua
2
star
17

titleist

A warcraft addon that randomly switches titles for you
Lua
2
star
18

tonedeaf

Warcraft addon - audio combo points tracker
Lua
2
star
19

RaidLevelScan

WowAddon - Benevolent Thuggery raid level scanning tool
Lua
2
star
20

simplemarker

A wow raid & party marking addon
Lua
2
star
21

PowerTab

My fork of PowerTab from http://powertab.codeplex.com/
PowerShell
2
star
22

BattlefieldMinimapScale

WowAddon - Adds simple mousewheel scaling to the BattlefieldMinimap
Lua
2
star
23

GitDemo

Just a place to demo and play
C#
1
star
24

FltSim_ThrottleMixtureTrim

A simple controller for flight simulators (e.g. MS Flight Sim 2020) that uses two linear pots, a rotary encoder and an Arduino Pro Micro
C++
1
star
25

SimpleGroupTell

WowAddon - Adds a /gr command for whispering your current party. No configuration required.
Lua
1
star
26

AvgItemLevel

Wow Addon - shows your average Item Level on the character pane
Lua
1
star
27

ESP01-Hubitat-Motion-Sensor

A simple, cheap, low-power motion sensor based on the ESP8266/ESP01 board and a basic PIR sensor. For use with Hubitat/SmartThings.
C++
1
star
28

pprovost.github.com

An abandoned attempt at a Jekyll-based pages site.
Ruby
1
star
29

AutoText

WowAddon - A simple system for frequently reused whispers, group messages, yells, etc.
Lua
1
star
30

VsKeyboardShortcutDump

A little Visual Studio extension that dumps all keyboard shortcuts to the Output window
C#
1
star
31

MouseOverMarker

WowAddon - A simple mouse over marker addon. This is a work in progress.
Lua
1
star
32

Mikrotik-Scripts

My little collection of scripts for Mikrotik Routers
Rascal
1
star
33

ChannelLock

Wow Addon - Keep your chat channels where you want em
Lua
1
star
34

ERLT2LapSync

An Arduino sketch for reading EasyRaceLapTimer transponders and sending appropriate serial messages to MultiGP LapSync.
C++
1
star
35

Tipsy

WowAddon - Simple tooltip repositioner
Lua
1
star
36

duet-wifi-config

My configuration files (SD card) for my DuetWifi 3D printer controller
GAP
1
star
37

ChocolateyPackages

My NuGet and Chocolatey packages
PowerShell
1
star
38

YorsahjHelper

WowAddon - Helper for the Yorsahj encounter in Dragon Soul
Lua
1
star
39

SkilletEnchantTUJ

WowAddon: Adds TUJ pricing information to Skillet's enchanting list
Lua
1
star
40

SimpleRepair

WowAddon - Automatically repair any damaged equipment you have equipped or in your bags when you visit a vendor who can do repairs.
Lua
1
star
41

RamRacer

WowAddon - Tracks the Brewfest Ram Racing pseudo-daily
1
star
42

BigWigs_Chogall_WorshipIcons

WowAddon - An extension to BigWigs Bossmods that sets raid icons on the worshipped players in the Cho'gall encounter
Lua
1
star
43

Broker_Bags

WowAddon - Bags information plugin for LibDataBroker visualizers
Lua
1
star
44

oUF_QuaicheGroup

WowAddon - The party/raid component of oUF_Quaiche
Lua
1
star
45

GuildRosterDump

WowAddon - Dumps guild roster info to a frame for copy/paste into Excel. Use /gdump to do the dump.
Lua
1
star
46

irssi-config

My local .irssi configuration files
Perl
1
star
47

LayoutGuides

WowAddon - Just a simple set of on-screen guides for layout out a new UI in a clean way.
Lua
1
star
48

SimpleTellTarget

WowAddon - Just a wee thing to enable /tt for whispers
Lua
1
star
49

DungeonTimer

WowAddon - A timer/tracker for 5-man dungeons. Does not require use of the LFD tool to work.
Lua
1
star
50

AddonTemplate

My personal addon template
Lua
1
star
51

QChatMods

WowAddon - My personal tweaks to the chat frames.
Lua
1
star
52

EquipSetBanker

WowAddon - A simple way to move equipment manager sets in and out of your bank
Lua
1
star
53

RaidInviteManager

WowAddon: Fast and easy roster and invite management for guild or PUG raids
Lua
1
star
54

EnchantScrollMats

WowAddon - Shows the required materials to make things like enchant scrolls in the tooltip of the item
Lua
1
star
55

ESP01-Hubitat-Contact-Sensor

Very low power, interrupt driven, deep sleep enabled ESP8266 + door/window contact switch for Hubitat/SmartThings
C++
1
star
56

SimpleTradeLinks

WowAddon - A simple trade filter and link catcher. If there is an item link, show the line. Otherwise filter it out. Also collects passing lines in an LDB tooltip.
Lua
1
star
57

RawrProfiler

WowAddon - Prototype profiler/data collection mod intended for import into the Rawr character modeler
Lua
1
star