{"thread":{"id":"26213","subject":"git color in commit editor","startedAt":"2011-01-06T06:42:40Z","lastAt":"2011-01-09T18:33:04Z","messageCount":6,"participants":["Pavan Savoy","Thomas Rast","Matthijs Kooijman","Ævar Arnfjörð Bjarmason","Jonathan Nieder"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"159021","messageId":"AANLkTimMZaSW4ZUS60Vo38vyuq-PPqPhGdCVZjFzF2Gs@mail.gmail.com","threadId":"26213","inReplyTo":null,"subject":"git color in commit editor","fromName":"Pavan Savoy","fromEmail":"pavan_savoy@sify.com","sentAt":"2011-01-06T06:42:40Z","receivedAt":"2011-01-06T06:42:40Z","isPatch":false,"sender":{"key":"pavan_savoy@sify.com","avatar":null},"body":"I am not sure, If this is a right list, Is there a git users mailing\nlist too somewhere out there ?\nAnyway the question is simple,\n\nI have git version git version 1.5.6.3, on 1 system and get the colors\nright during a git commit (commit editor being vim..)\nOn another machine with same vim version and same gitconfig and pretty\nmuch all the same settings except that the\ngit version is git version 1.6.3.3, I don't have color in the commit editor...\n\nMoving to newer GIT versions didn't help either...\nWhat am I missing?\n\n\nregards,\nPavan\n"},{"id":"159022","messageId":"201101061106.50636.trast@student.ethz.ch","threadId":"26213","inReplyTo":"AANLkTimMZaSW4ZUS60Vo38vyuq-PPqPhGdCVZjFzF2Gs@mail.gmail.com","subject":"Re: git color in commit editor","fromName":"Thomas Rast","fromEmail":"trast@student.ethz.ch","sentAt":"2011-01-06T10:06:50Z","receivedAt":"2011-01-06T10:06:50Z","isPatch":false,"sender":{"key":"tr@thomasrast.ch","avatar":"https://avatars.githubusercontent.com/u/153510?v=4"},"body":"Pavan Savoy wrote:\n> On another machine with same vim version and same gitconfig and pretty\n> much all the same settings except that the\n> git version is git version 1.6.3.3, I don't have color in the commit editor...\n> \n> Moving to newer GIT versions didn't help either...\n> What am I missing?\n\nThat's squarely in vim's domain, git does not (and cannot) impose any\ncolors on the editor.  So you need to configure vim on the second\nmachine for the highlighting.\n\n-- \nThomas Rast\ntrast@{inf,student}.ethz.ch\n"},{"id":"159023","messageId":"20110106101531.GU3069@login.drsnuggles.stderr.nl","threadId":"26213","inReplyTo":"AANLkTimMZaSW4ZUS60Vo38vyuq-PPqPhGdCVZjFzF2Gs@mail.gmail.com","subject":"Re: git color in commit editor","fromName":"Matthijs Kooijman","fromEmail":"matthijs@stdin.nl","sentAt":"2011-01-06T10:15:31Z","receivedAt":"2011-01-06T10:15:31Z","isPatch":false,"sender":{"key":"matthijs@stdin.nl","avatar":"https://avatars.githubusercontent.com/u/194491?v=4"},"body":"Hey Pavan,\n\n> I have git version git version 1.5.6.3, on 1 system and get the colors\n> right during a git commit (commit editor being vim..)\n> On another machine with same vim version and same gitconfig and pretty\n> much all the same settings except that the\n> git version is git version 1.6.3.3, I don't have color in the commit editor...\nTry the \":syntax on\" command in your vim (without the quotes, with the\ncolon).\n\nYou can put it in your ~/.vimrc file as well (without the colon there).\n\nGr.\n\nMatthijs\n"},{"id":"159024","messageId":"AANLkTimAXV9u4FfL2cv5vE9oDgs-LfJu2DopRw=FEqUE@mail.gmail.com","threadId":"26213","inReplyTo":"AANLkTimMZaSW4ZUS60Vo38vyuq-PPqPhGdCVZjFzF2Gs@mail.gmail.com","subject":"Re: git color in commit editor","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2011-01-06T10:58:20Z","receivedAt":"2011-01-06T10:58:20Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Thu, Jan 6, 2011 at 07:42, Pavan Savoy <pavan_savoy@sify.com> wrote:\n> I have git version git version 1.5.6.3, on 1 system and get the colors\n> right during a git commit (commit editor being vim..)\n\nFWIW here's how to get those colors under Emacs:\nhttps://github.com/rafl/git-commit-mode\n"},{"id":"159249","messageId":"AANLkTikns9XyM48HkggaKFEsj61hP1y3Y-QczA0Pp9Bs@mail.gmail.com","threadId":"26213","inReplyTo":"AANLkTimAXV9u4FfL2cv5vE9oDgs-LfJu2DopRw=FEqUE@mail.gmail.com","subject":"Re: git color in commit editor","fromName":"Pavan Savoy","fromEmail":"pavan_savoy@sify.com","sentAt":"2011-01-09T18:26:15Z","receivedAt":"2011-01-09T18:26:15Z","isPatch":false,"sender":{"key":"pavan_savoy@sify.com","avatar":null},"body":"On Thu, Jan 6, 2011 at 4:28 PM, Ævar Arnfjörð Bjarmason\n<avarab@gmail.com> wrote:\n> On Thu, Jan 6, 2011 at 07:42, Pavan Savoy <pavan_savoy@sify.com> wrote:\n>> I have git version git version 1.5.6.3, on 1 system and get the colors\n>> right during a git commit (commit editor being vim..)\n>\n> FWIW here's how to get those colors under Emacs:\n> https://github.com/rafl/git-commit-mode\n>\n\nThanks, I do have syntax on in my vimrc, as I mentioned, I also have colors in\nvim for .c files on both machines...\nThe only differences being git versions, also what syntax or color\nformat would vim get for git and from where?\n"},{"id":"159250","messageId":"20110109183304.GB7718@burratino","threadId":"26213","inReplyTo":"AANLkTikns9XyM48HkggaKFEsj61hP1y3Y-QczA0Pp9Bs@mail.gmail.com","subject":"Re: git color in commit editor","fromName":"Jonathan Nieder","fromEmail":"jrnieder@gmail.com","sentAt":"2011-01-09T18:33:04Z","receivedAt":"2011-01-09T18:33:04Z","isPatch":false,"sender":{"key":"jrnieder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/281595?v=4"},"body":"Pavan Savoy wrote:\n\n> Thanks, I do have syntax on in my vimrc, as I mentioned, I also have colors in\n> vim for .c files on both machines...\n> The only differences being git versions, also what syntax or color\n> format would vim get for git and from where?\n\n$ find /usr/share/vim -name git\\*\n/usr/share/vim/vim73/ftplugin/gitconfig.vim\n/usr/share/vim/vim73/ftplugin/gitsendemail.vim\n/usr/share/vim/vim73/ftplugin/gitrebase.vim\n/usr/share/vim/vim73/ftplugin/gitcommit.vim\n/usr/share/vim/vim73/ftplugin/git.vim\n/usr/share/vim/vim73/indent/gitconfig.vim\n/usr/share/vim/vim73/syntax/gitconfig.vim\n/usr/share/vim/vim73/syntax/gitsendemail.vim\n/usr/share/vim/vim73/syntax/gitrebase.vim\n/usr/share/vim/vim73/syntax/gitcommit.vim\n/usr/share/vim/vim73/syntax/git.vim\n\n\":help :syn-files\" explains how to use them.\n\nHope that helps,\nJonathan\n"}]}