vimrc settings not working on git bash running in ConsoleZ

499 views Asked by At

I've following vimrc settings for Python environment, that works fine if I open GitBash directly:

" 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

But, when I'm running Git bash from inside ConsoleZ window, it doesn't seem to work. Is there some other settings that needs to be done? Haven't found anything about this anywhere.

1

There are 1 answers

0
VonC On BEST ANSWER

The first step is to make sure that Git bash is the latest one: Git for Windows 2.4.4 (PortableGit-2.4.4.2-3rd-release-candidate-64-bit.7z.exe, released 4 hours earlier today)

I explain why that 64 version of the new Git for Windows came to be in "Why is it that if you download Git 2.0 from the net, you always get a 1.9.4 installer package?".

To launch its bash:

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

Then make sure the vimrc has Unix eol (end of line) character, and not Windows eol.