Windows PowerShell Syntax Plugin provides Syntax coloring, indenting and filetype detection for Windows PowerShell.
It is available at :
If you use Pathogen, just extract into your bundle folder.
If not, just set up Pathogen as follows below :
Additional actions to make it work on Windows 7 :
cd C:\Program Files (x86)\Vim\vimfiles
Install pathogen.vim in C:\Program Files (x86)\Vim\vimfiles\autoload
To enable Pathogen, add this to your gvimrc :
filetype plugin indent on
On Windows 7/10, the gvimrc file must be named as _gvimrc and located in one of the folders :
$HOME points to your home directory in Windows 7 and $VIM points to your directory where Vim/gVim have been installed.
The personal initialization files are searched in the order specified above
and only the first one that is found is read.
This plugin is now enabled. Enjoy !