" Stop here if the user doesn't want ftplugin mappings if exists('no_plugin_maps') || exists('no_diff_maps') finish endif " Maps using autoloaded function for quoted block movement noremap [ \ :call diff#MoveBlock(v:count1, 1, 0) sunmap [ noremap ] \ :call diff#MoveBlock(v:count1, 0, 0) sunmap ] let b:undo_ftplugin .= '|smap ] ' \ . '|unmap ]' \ . '|smap ] ' \ . '|unmap ]' " Set mappings for diff pruning plugin nmap p \ (DiffPrune) xmap p \ (DiffPrune) let b:undo_ftplugin .= '|nunmap p' \ . '|xunmap p'