Vim with Powershell

后端 未结 12 480
梦毁少年i
梦毁少年i 2020-12-07 12:42

I\'m using gvim on Windows.

In my _vimrc I\'ve added:

set shell=powershell.exe
set shellcmdflag=-c
set shellpipe=>
set shellredir=>

function!          


        
12条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-07 13:17

    The initial example code works fine for me when I plop it in vimrc.

    So now I'm trying to figure out what in my vimrc is making it function. Possibly:

    set encoding=utf8
    

    Edit: Yep, that appears to do it. You probably want to have VIM defaulting to unicode anyway, these days...

提交回复
热议问题