2015-06-20 63 views
2

我下面的Python环境,工作正常的vimrc设置,如果我直接打开GitBash:的vimrc设置不工作的git bash的运行在ConsoleZ

" enable syntax highlighting 
syntax enable 

" show line numbers 
set number 

" set tabs to have 4 spaces 
set ts=4 

" indent when moving to the next line while writing code 
set autoindent 

" expand tabs into spaces 
set expandtab 

" when using the >> or << commands, shift lines by 4 spaces 
set shiftwidth=4 

" show the matching part of the pair for [] {} and() 
set showmatch 

" enable all Python syntax highlighting features 
let python_highlight_all = 1 

但是,当我从内部运行的Git的bash ConsoleZ窗口,它似乎不工作。是否还有其他一些设置需要完成?在任何地方都没有发现任何东西。

+0

会帮助http://stackoverflow.com/a/13238055/6309(用consoleZ代替console2,这是console2的分支:https://github.com/cbucher/console) – VonC

+0

@VonC似乎没有上班。或者,也许我不明白什么$ EMULATOR条件应该在那里做..我试着把所有上述设置内if条件。我在ConsoleZ-gitbash选项卡中将EMULATOR环境变量设置为“consoleZ; exec/bin/bash -i” –

+0

您使用的是什么版本的Git? – VonC

回答

1

的第一步是确保Git的bash的是最新的一个:混帐的Windows 2.4.4(PortableGit-2.4.4.2-3rd-release-candidate-64-bit.7z.exe,今日发布4小时更早)

我解释为什么64版的新的Git的Windows来到“Why is it that if you download Git 2.0 from the net, you always get a 1.9.4 installer package?”。

推出的bash:

c:\path\to\PortableGit-2.4.4.2-3rd-release-candidate-64-bit\git-bash.exe 

然后确保vimrc的具有Unix的EOL(行尾)字符,而不是视窗EOL。

相关问题