From 1ffef6a96dd2a7519ad25051d8db10c2e01f3851 Mon Sep 17 00:00:00 2001 From: Matěj Cepl Date: Tue, 10 Sep 2013 00:37:28 +0200 Subject: Don't redefine major vim commands. Instead of redefining D and S, use -prepended mappings instead. Also fix header of the file. --- ftplugin/diff_navigator.vim | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/ftplugin/diff_navigator.vim b/ftplugin/diff_navigator.vim index d8f5df8..efce948 100644 --- a/ftplugin/diff_navigator.vim +++ b/ftplugin/diff_navigator.vim @@ -1,9 +1,10 @@ " ============================================================================ " File: diff_navigator.vim " Description: Filetype plugin to ease navigation in (unified) diffs -" Maintainer: Petr Uzel -" Version: 0.1 -" Last Change: 27 Aug, 2008 +" Maintainer: Petr Uzel , +" Matěj Cepl +" Version: 0.2 +" Last Change: 10 Sep, 2013 " License: This program is free software. It comes without any warranty, " to the extent permitted by applicable law. You can redistribute " it and/or modify it under the terms of the Do What The Fuck You @@ -15,9 +16,11 @@ " " " TODO: show current hunk in status line -" TODO: delete hunk/whole file diff - like http://www.vim.org/scripts/script.php?script_id=444) +" TODO: delete whole file diff - +" like http://www.vim.org/scripts/script.php?script_id=444) " TODO: incorporate more patchutils functionality -" TODO: something like taglist for diff (shows all files/hunks in the diff) +" TODO: something like taglist for diff (shows all files/hunks in +" the diff) " TODO: option for *Next|Prev* funtions to wrap around end of file " ============================================================================ @@ -303,5 +306,5 @@ nnoremap