c.vim 플러그인을 우분투에 VIM에서 C 파일을 컴파일 할 때 나는이 문제를 가지고 있지 않지만, Windows에서 나는 (\의 RC 또는 \의 RR 입력에서) 정력에 컴파일이 오류를 얻을 :Powershell Vim에서 컴파일 할 수 있도록 c.vim을 구성하는 방법은 무엇입니까?
File C:\Users\Kosine\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1 cannot be loaded because the execution of scripts is disabled on this system. Please see "get-help about_signing" for more details.
At line:1 char:2
+ . <<<< 'C:\Users\Kosine\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1'
+ CategoryInfo : NotSpecified: (:) [], PSSecurityException
The term 'gcc.exe' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char: 8
+ gcc.exe <<<< -Wall -g -00 -c C:/Users/Kosine/Programming/prog0402.c -o C:/User/Kosine/Programming/prog0402.obj > C:/User/Kosine/AppData/Local/Temp/VIeCE08.tmp
+ CategoryInfo : ObjectNotFound: (gcc.exe:String) [], CommandNotFoundException
+ FullyQualifiedErrorID : CommandNotFoundException
을
MinGW가 이미 설치되어 있고 vim 외부에서 gcc를 실행할 수 있습니다. 또한 Set-ExecutionPolicy RemoteSigned
을 사용했고 다른 ps1 파일도 제대로 작동합니다. vim에서 컴파일 할 수 있도록이 문제를 해결할 수있는 방법이 있습니까?
내 PowerShell에서 차단 해제 파일을 인식 할 수없는 cmdlet입니다. 또한 Microsoft.PowerShell_profile.ps1은 내가 직접 작성한 사용자 지정 기능이 포함 된 프로필 파일입니다. vim이 c 파일을 컴파일하려고 시도 할 때 vim을 닫은 후에 Powershell에 다른 오류 메시지가 나타나지 않기 때문에 다른 Powershell 세션을 사용하고있는 것으로 나타났습니다. 약 1 초 동안 사라지기 전에 오류 메시지를 화면에 출력해야했습니다. 나는 이해가되기를 바랍니다. – vxs8122
첫 번째 오류를 수정 한 .vimrc 파일에 행을 추가했습니다. 'set shell = powershell.exe \ -ExecutionPolicy \ Unrestricted' 그러나 여전히 gcc.exe를 찾을 수 없습니다. – vxs8122
그것도 할 것입니다. VIM이 32 비트 쉘을 실행하고있을 수 있습니다. 각 PowerShell 콘솔 (x64 및 x86)에 특정한 실행. –