Created
April 11, 2019 04:41
-
-
Save madalinpopa/d6794e5b3f4bb3cb6a5bd7f582ebd8ff to your computer and use it in GitHub Desktop.
vim_work_with_powershell.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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