monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone: b6d5661b17172a52c5083b45cf8


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone: b6d5661b17172a52c5083b45cf816d15bfa63d25
Date: Sun, 19 Jun 2011 17:11:55 +0200 (CEST)

revision:            b6d5661b17172a52c5083b45cf816d15bfa63d25
date:                2011-06-19T15:06:36
author:              Richard Hopkins <address@hidden>
branch:              net.venge.monotone
changelog:
Vim syntax file for monotone commit log's

When monotone uses Vim for the interactive commit log editor this file
enables syntax highlighting.

1) Copy mtncommit.vim to your runtimepath/syntax/ directory.
   eg. ~/.vim/syntax/
2) Either use "set filetype=mtncommit" as and when you want, or add the
following to your vimrc.

au BufNewFile,BufRead mtn* set filetype=mtncommit

The default colors should be useable without any further modification, but
if you would like to change them use

mtnCommitAdded
mtnCommitCancelLine
mtnCommitCertName
mtnCommitComment
mtnCommitPatched
mtnCommitRemoved

manifest:
format_version "1"

new_manifest [906cf4fe2073adbfd6eaaa617a02ede72deea3d1]

old_revision [5bfdedba0571477ec41755bc60db55402bb5d5f0]

add_file "contrib/mtncommit.vim"
 content [edafe2ebd93351bb290baa1db5b9313dab3237a6]
============================================================
--- /dev/null	
+++ contrib/mtncommit.vim	edafe2ebd93351bb290baa1db5b9313dab3237a6
@@ -0,0 +1,20 @@
+" Syntax highlighting for monotone commit log messages
+"
+" Set up keywords and patterns we want to highlight
+syn match mtnCommitAdded /\ \ added/
+syn match mtnCommitCancelLine /\*\*\* REMOVE THIS LINE TO CANCEL THE COMMIT \*\*\*/
+" Highlight cert names such as Author: and Branch:
+syn match mtnCommitCertName /^.*: /
+syn match mtnCommitComment /--.*$/
+syn match mtnCommitPatched /\ \ patched/
+syn match mtnCommitRemoved /\ \ removed/
+
+" Set up sane default highlighting links, such as mtnCommitComment->Comment
+hi def link mtnCommitAdded	diffAdded
+hi def link mtnCommitCancelLine	Error
+hi def link mtnCommitCertName	Identifier
+hi def link mtnCommitComment	Comment
+hi def link mtnCommitPatched	diffChanged
+hi def link mtnCommitRemoved	diffRemoved
+
+

reply via email to

[Prev in Thread] Current Thread [Next in Thread]