From 12b7f6881bc31f052be84945ea77200c49044fde Mon Sep 17 00:00:00 2001 From: Iain Patterson Date: Wed, 5 Mar 2008 11:06:01 +0000 Subject: [PATCH] Added diffchanges and speeddating plugins. Added cfengine syntax. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@103 6be0d1a5-5cfe-0310-89b6-964be062b18b --- .vim/plugin/diffchanges.vim | 141 ++++++++ .vim/plugin/speeddating.vim | 787 ++++++++++++++++++++++++++++++++++++++++++++ .vim/syntax/cfengine.vim | 163 +++++++++ 3 files changed, 1091 insertions(+) create mode 100644 .vim/plugin/diffchanges.vim create mode 100644 .vim/plugin/speeddating.vim create mode 100644 .vim/syntax/cfengine.vim diff --git a/.vim/plugin/diffchanges.vim b/.vim/plugin/diffchanges.vim new file mode 100644 index 0000000..67f81c1 --- /dev/null +++ b/.vim/plugin/diffchanges.vim @@ -0,0 +1,141 @@ +" Filename: diffchanges.vim +" Description: Shows the changes made to the current buffer in a diff format +" Maintainer: Jeremy Cantrell +" Last Modified: Fri 2008-02-29 14:17:06 (-0500) + +if v:version < 700 + finish +endif + +if exists("loaded_diffchanges") + finish +endif + +let loaded_diffchanges = 1 + +let g:diffchanges_diff = [] +let g:diffchanges_patch = [] +let s:diffchanges_modes = ['diff', 'patch'] + +if !exists('g:diffchanges_patch_cmd') + let g:diffchanges_patch_cmd = 'diff -u' +endif + +" Save settings {{{1 +let s:save_cpo = &cpo +set cpo&vim + +" Mappings {{{1 +if !hasmapto('DiffChangesDiffToggle') + nmap dcd DiffChangesDiffToggle +endif + +if !hasmapto('DiffChangesPatchToggle') + nmap dcp DiffChangesPatchToggle +endif + +nnoremap