2015-06-20 34 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。

相關問題