" Extra configuration for diffs if &filetype !=# 'diff' || v:version < 700 || &compatible 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 " Modify curly braces to navigate by diff block nnoremap [ \ :call search('\m^@@', 'bW') nnoremap ] \ :call search('\m^@@', 'W') let b:undo_ftplugin .= '|nunmap [' \ . '|nunmap ]' " Set mappings nmap p \ (DiffPrune) xmap p \ (DiffPrune) nmap pp \ (DiffPrune)_ let b:undo_ftplugin .= '|nunmap p' \ . '|xunmap p' \ . '|nunmap pp'