2013-08-28 25 views

回答

1

How to tell if vim is being run in command line vs. powershell

...這一個並沒有爲我工作,但是我發現 「它的解決方案的其他方式」:

colorscheme ir_black 

if has('gui_running') 
    set guifont=Inconsolata:h12 
    colorscheme native 
endif 

首先colorscheme將適用於Powershell,並且if-endif中的那個將在gVim在Powershell之外運行時起作用。

+0

什麼部分不起作用? – FDinoff

+0

整件事情都沒有奏效,但是現在我發現它確實有效,但只有當它以'set shell = posh'爲前提時。 – SanderC

相關問題