1

如何让 VIM 识别在 Powershell 中运行并应用我想要的颜色方案?

换句话说:IF running in powershell THEN colorscheme ...

4

1 回答 1

1

如何判断 vim 是否在命令行与 powershell 中运行

...这个对我不起作用,但是我发现“解决方案的另一种方式”:

colorscheme ir_black

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

第一个适用于 Powershell,当 gVim 在 Powershell 外运行时colorscheme,里面的一个可以工作。if-endif

于 2013-08-28T17:29:01.377 回答