如何讓VIM識別出在Powershell中運行,並應用我想要的colorscheme?如何在Powershell中運行時在VIM中設置不同的顏色方案?
換句話說:IF running in powershell THEN colorscheme ...
如何讓VIM識別出在Powershell中運行,並應用我想要的colorscheme?如何在Powershell中運行時在VIM中設置不同的顏色方案?
換句話說:IF running in powershell THEN colorscheme ...
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之外運行時起作用。
其實我認爲這一個有答案http://stackoverflow.com/questions/11915895/how-to-tell-if-vim-is-being-run-in-command-line-vs-powershell?rq = 1 – FDinoff