Richard Hartmann, 21.01.2009:
> 
> Hi all.
> 
> if I run
> 
>   git blame foo.file | vim -
> 
> or
> 
>   svn blame foo.file | vim -
> 
> I get the blame-annotated file in Vim. Is there a way to have the syntax
> highlighting ignore the blame stuff and simply highlight the actual
> code?

I'm not sure if everybody is familiar with the blame output. Maybe you
have more chance of getting responses with an example.

In the blame output, each line of the considered file is prepended with
various information. This can be the version, author, date, line number,
maybe more. The blame output between various VCSs may not be compatible
with each other and can also be reduced in the amount of information.

4 example lines from git-blame:

6acbcb92 (Johannes Schindelin       2006-07-25 20:24:22 +0200 112)              
} else if (!strcmp(cmd, "--bare")) {
ef5ddb2f (Shawn O. Pearce           2006-12-30 23:28:53 -0500 113)              
        static char git_dir[PATH_MAX+1];
6adcca3f (Junio C Hamano            2007-08-27 00:58:06 -0700 114)              
        is_bare_repository_cfg = 1;
9277d602 (Junio C Hamano            2007-08-27 22:41:23 -0700 115)              
        setenv(GIT_DIR_ENVIRONMENT, getcwd(git_dir, sizeof(git_dir)), 0);


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to