" Extra configuration for diffs if &filetype != 'diff' || &compatible || v:version < 700 finish endif " Stop here if the user doesn't want ftplugin mappings if exists('g:no_plugin_maps') || exists('g:no_diff_maps') finish endif " Set mappings nmap p (DiffPrune) xmap p (DiffPrune) nmap pp (DiffPrune)_ let b:undo_ftplugin = b:undo_ftplugin \ . '|nunmap p' \ . '|xunmap p' \ . '|nunmap pp'