git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git color in commit editor
@ 2011-01-06  6:42 Pavan Savoy
  2011-01-06 10:06 ` Thomas Rast
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Pavan Savoy @ 2011-01-06  6:42 UTC (permalink / raw)
  To: git

I am not sure, If this is a right list, Is there a git users mailing
list too somewhere out there ?
Anyway the question is simple,

I have git version git version 1.5.6.3, on 1 system and get the colors
right during a git commit (commit editor being vim..)
On another machine with same vim version and same gitconfig and pretty
much all the same settings except that the
git version is git version 1.6.3.3, I don't have color in the commit editor...

Moving to newer GIT versions didn't help either...
What am I missing?


regards,
Pavan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git color in commit editor
  2011-01-06  6:42 git color in commit editor Pavan Savoy
@ 2011-01-06 10:06 ` Thomas Rast
  2011-01-06 10:15 ` Matthijs Kooijman
  2011-01-06 10:58 ` Ævar Arnfjörð Bjarmason
  2 siblings, 0 replies; 6+ messages in thread
From: Thomas Rast @ 2011-01-06 10:06 UTC (permalink / raw)
  To: Pavan Savoy; +Cc: git

Pavan Savoy wrote:
> On another machine with same vim version and same gitconfig and pretty
> much all the same settings except that the
> git version is git version 1.6.3.3, I don't have color in the commit editor...
> 
> Moving to newer GIT versions didn't help either...
> What am I missing?

That's squarely in vim's domain, git does not (and cannot) impose any
colors on the editor.  So you need to configure vim on the second
machine for the highlighting.

-- 
Thomas Rast
trast@{inf,student}.ethz.ch

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git color in commit editor
  2011-01-06  6:42 git color in commit editor Pavan Savoy
  2011-01-06 10:06 ` Thomas Rast
@ 2011-01-06 10:15 ` Matthijs Kooijman
  2011-01-06 10:58 ` Ævar Arnfjörð Bjarmason
  2 siblings, 0 replies; 6+ messages in thread
From: Matthijs Kooijman @ 2011-01-06 10:15 UTC (permalink / raw)
  To: Pavan Savoy; +Cc: git

[-- Attachment #1: Type: text/plain, Size: 507 bytes --]

Hey Pavan,

> I have git version git version 1.5.6.3, on 1 system and get the colors
> right during a git commit (commit editor being vim..)
> On another machine with same vim version and same gitconfig and pretty
> much all the same settings except that the
> git version is git version 1.6.3.3, I don't have color in the commit editor...
Try the ":syntax on" command in your vim (without the quotes, with the
colon).

You can put it in your ~/.vimrc file as well (without the colon there).

Gr.

Matthijs

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git color in commit editor
  2011-01-06  6:42 git color in commit editor Pavan Savoy
  2011-01-06 10:06 ` Thomas Rast
  2011-01-06 10:15 ` Matthijs Kooijman
@ 2011-01-06 10:58 ` Ævar Arnfjörð Bjarmason
  2011-01-09 18:26   ` Pavan Savoy
  2 siblings, 1 reply; 6+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2011-01-06 10:58 UTC (permalink / raw)
  To: Pavan Savoy; +Cc: git

On Thu, Jan 6, 2011 at 07:42, Pavan Savoy <pavan_savoy@sify.com> wrote:
> I have git version git version 1.5.6.3, on 1 system and get the colors
> right during a git commit (commit editor being vim..)

FWIW here's how to get those colors under Emacs:
https://github.com/rafl/git-commit-mode

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git color in commit editor
  2011-01-06 10:58 ` Ævar Arnfjörð Bjarmason
@ 2011-01-09 18:26   ` Pavan Savoy
  2011-01-09 18:33     ` Jonathan Nieder
  0 siblings, 1 reply; 6+ messages in thread
From: Pavan Savoy @ 2011-01-09 18:26 UTC (permalink / raw)
  To: Ævar Arnfjörð Bjarmason; +Cc: git

On Thu, Jan 6, 2011 at 4:28 PM, Ævar Arnfjörð Bjarmason
<avarab@gmail.com> wrote:
> On Thu, Jan 6, 2011 at 07:42, Pavan Savoy <pavan_savoy@sify.com> wrote:
>> I have git version git version 1.5.6.3, on 1 system and get the colors
>> right during a git commit (commit editor being vim..)
>
> FWIW here's how to get those colors under Emacs:
> https://github.com/rafl/git-commit-mode
>

Thanks, I do have syntax on in my vimrc, as I mentioned, I also have colors in
vim for .c files on both machines...
The only differences being git versions, also what syntax or color
format would vim get for git and from where?

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: git color in commit editor
  2011-01-09 18:26   ` Pavan Savoy
@ 2011-01-09 18:33     ` Jonathan Nieder
  0 siblings, 0 replies; 6+ messages in thread
From: Jonathan Nieder @ 2011-01-09 18:33 UTC (permalink / raw)
  To: Pavan Savoy; +Cc: Ævar Arnfjörð Bjarmason, git

Pavan Savoy wrote:

> Thanks, I do have syntax on in my vimrc, as I mentioned, I also have colors in
> vim for .c files on both machines...
> The only differences being git versions, also what syntax or color
> format would vim get for git and from where?

$ find /usr/share/vim -name git\*
/usr/share/vim/vim73/ftplugin/gitconfig.vim
/usr/share/vim/vim73/ftplugin/gitsendemail.vim
/usr/share/vim/vim73/ftplugin/gitrebase.vim
/usr/share/vim/vim73/ftplugin/gitcommit.vim
/usr/share/vim/vim73/ftplugin/git.vim
/usr/share/vim/vim73/indent/gitconfig.vim
/usr/share/vim/vim73/syntax/gitconfig.vim
/usr/share/vim/vim73/syntax/gitsendemail.vim
/usr/share/vim/vim73/syntax/gitrebase.vim
/usr/share/vim/vim73/syntax/gitcommit.vim
/usr/share/vim/vim73/syntax/git.vim

":help :syn-files" explains how to use them.

Hope that helps,
Jonathan

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2011-01-09 18:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-06  6:42 git color in commit editor Pavan Savoy
2011-01-06 10:06 ` Thomas Rast
2011-01-06 10:15 ` Matthijs Kooijman
2011-01-06 10:58 ` Ævar Arnfjörð Bjarmason
2011-01-09 18:26   ` Pavan Savoy
2011-01-09 18:33     ` Jonathan Nieder

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).