From ed3f9a26ecad2bb2e0bdf3aefa7d5f636dd0d726 Mon Sep 17 00:00:00 2001 From: DarkWiiPlayer Date: Tue, 24 Oct 2023 16:44:17 +0200 Subject: [PATCH] Remove broken GitCompare vim function :GitDiff should be used instead --- bin/xls2csv | 7 +++++++ vim/plugin/git.vim | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) create mode 100755 bin/xls2csv diff --git a/bin/xls2csv b/bin/xls2csv new file mode 100755 index 0000000..eeac123 --- /dev/null +++ b/bin/xls2csv @@ -0,0 +1,7 @@ +#!/bin/sh + +for sheet in $(in2csv --names "$1") +do + basename=$(echo $1 | sed -e 's/\.[^\.]\+$//') + in2csv --sheet "$sheet" "$1" | csvformat -D \; > "$basename-$sheet.csv" +done diff --git a/vim/plugin/git.vim b/vim/plugin/git.vim index f5a7879..00303be 100644 --- a/vim/plugin/git.vim +++ b/vim/plugin/git.vim @@ -265,11 +265,6 @@ command! GitFirst call git_first() | call s:git_info() command! GitLast call git_last() | call s:git_info() command! GitInfo call git_info() command! -nargs=1 GitCheckout call file_at_revision() -command! -nargs=? GitCompare try - \| call s:gitroot() | call git_diff() - \| catch - \| echo 'Not a git repo!' - \| endtry command! GitRoot call cd_git_root('%') command! GitOrig exec 'e '.b:git_original_file command! ShowGitRoot try