Skip to content

Commit

Permalink
Enable autocompletion of hyphenated PowerShell commands.
Browse files Browse the repository at this point in the history
Update Vim's 'iskeyword' to allow hyphenated PowerShell keywords, e.g. Get-Content or Get-ADUser
  • Loading branch information
Doug Ireton committed May 25, 2012
1 parent 594e365 commit ff4498a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ftplugin/ps1.vim
Expand Up @@ -14,10 +14,13 @@ let b:did_ftplugin = 1
setlocal tw=0
setlocal commentstring=#%s
setlocal formatoptions=tcqro
" Enable autocompletion of hyphenated PowerShell commands,
" e.g. Get-Content or Get-ADUser
setlocal iskeyword+=-

" Change the browse dialog on Win32 to show mainly PowerShell-related files
if has("gui_win32")
let b:browsefilter =
let b:browsefilter =
\ "All PowerShell Files (*.ps1, *.psd1, *.psm1, *.ps1xml)\t*.ps1;*.psd1;*.psm1;*.ps1xml\n" .
\ "PowerShell Script Files (*.ps1)\t*.ps1\n" .
\ "PowerShell Module Files (*.psd1, *.psm1)\t*.psd1;*.psm1\n" .
Expand Down

0 comments on commit ff4498a

Please sign in to comment.