Skip to content

Instantly share code, notes, and snippets.

@madalinpopa
Created April 11, 2019 04:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save madalinpopa/d6794e5b3f4bb3cb6a5bd7f582ebd8ff to your computer and use it in GitHub Desktop.
Save madalinpopa/d6794e5b3f4bb3cb6a5bd7f582ebd8ff to your computer and use it in GitHub Desktop.
vim_work_with_powershell.md
Put this in .vimrc
```
" Set PowerShell as shell
set shell=powershell.exe
set shellcmdflag=-NoProfile\ -NoLogo\ -NonInteractive\ -Command
set shellpipe=|
set shellredir=>
```
Enable scripts in powershell
```
C:\Windows\SysWOW64\WindowsPowerShell\v1.0\powershell.exe "Set-ExecutionPolicy RemoteSigned" <- 64
C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe "Set-ExecutionPolicy RemoteSigned" <- 32
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment