Windows PowerShell Syntax Plugin set up in gVim

Windows PowerShell Syntax Plugin provides Syntax coloring, indenting and filetype detection for Windows PowerShell.

It is available at :

http://www.vim.org/scripts/script.php?script_id=1327

http://github.com/PProvost/vim-ps1

If you use Pathogen, just extract into your bundle folder.

If not, just set up Pathogen as follows below :

https://github.com/tpope/vim-pathogen

Additional actions to make it work on Windows 7 :

cd C:\Program Files (x86)\Vim\vimfiles
mkdir autoload
mkdir bundle

Install pathogen.vim in C:\Program Files (x86)\Vim\vimfiles\autoload

To enable Pathogen, add this to your gvimrc :

execute pathogen#infect()
syntax on
filetype plugin indent on

On Windows 7/10, the gvimrc file must be named as _gvimrc and located in one of the folders :

$HOME/_gvimrc
$HOME/vimfiles/gvimrc
$VIM/_gvimrc

$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.

http://vimhelp.appspot.com/gui.txt.html#gvimrc

This plugin is now enabled. Enjoy !

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.