shellにPowerShellを設定する

.vimrc

 if has('win32')
   set shell=C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
   set shellcmdflag=-c
   set shellquote=\"
   set shellxquote=
 endif

PSプロファイルを読み込まないプレーンなPowerShellを起動する場合

 if has('win32')
   set shell=powershell.exe
   set shellcmdflag=-noprofile\ -nologo\ -c
   set shellquote=\"
   set shellxquote=
   set shellpipe=|
   set shellredir=>
   set shellcmdflag=/c\ powershell.exe\ -NoLogo\ -NoProfile\ -NonInteractive\ -ExecutionPolicy\ RemoteSigned
 endif

参考

http://stackoverflow.com/questions/94382/vim-with-powershell


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS

Last-modified: 2018-06-12 (火) 06:44:38