From: Iain Patterson Date: Wed, 5 Mar 2008 11:06:01 +0000 (+0000) Subject: Added diffchanges and speeddating plugins. X-Git-Url: http://git.iain.cx/?a=commitdiff_plain;h=12b7f6881bc31f052be84945ea77200c49044fde;p=profile.git Added diffchanges and speeddating plugins. Added cfengine syntax. git-svn-id: https://svn.cambridge.iain.cx/profile/trunk@103 6be0d1a5-5cfe-0310-89b6-964be062b18b --- 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