" Filename: diffchanges.vim " Description: Shows the changes made to the current buffer in a diff format " Maintainer: Jeremy Cantrell " Last Modified: Mon 2008-03-10 02:07:20 (-0400) 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 let s:save_cpo = &cpo set cpo&vim " Mappings {{{ if !hasmapto('DiffChangesDiffToggle') nmap dcd DiffChangesDiffToggle endif if !hasmapto('DiffChangesPatchToggle') nmap dcp DiffChangesPatchToggle endif nnoremap