From aed5f1ca9da7d05b3c7f178ec8d6121edd3f5817 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Mon, 13 Feb 2012 20:26:50 -0600 Subject: [PATCH] Fix wrapping and indentation for PowerShell scripts --- ftplugin/ps1.vim | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ftplugin/ps1.vim b/ftplugin/ps1.vim index 6101108..631eab9 100644 --- a/ftplugin/ps1.vim +++ b/ftplugin/ps1.vim @@ -12,9 +12,14 @@ if exists("b:did_ftplugin") | finish | endif " Don't load another plug-in for this buffer let b:did_ftplugin = 1 -setlocal tw=0 +setlocal tw=79 setlocal commentstring=#%s setlocal formatoptions=tcqro +setlocal tabstop=4 +setlocal softtabstop=4 +setlocal shiftwidth=4 +setlocal expandtab +setlocal autoindent " Change the browse dialog on Win32 to show mainly PowerShell-related files if has("gui_win32")