Good afternoon,
I am writing a simple script in my BASHRC file to post something that I could not solve in the previous question:
Vim svn-diff side view for entire directory
I basically generate a list of all files with the status of “Modified” SVN. For each of these files, I want to create a side-by-side visual diff, convert it to HTML, and then add it to the HTML executable.
eg:
MODIFIED_FILES="$(svn status | grep "^M" | cut -c9-)" for i in ${MODIFIED_FILES}; do
I can run vimdiff quite easily by creating a clean copy of the file and getting a copy of the modified file.
vimdiff has the problem first, namely:
2 files to edit Error detected while processing /Users/Owner/.vimrc: line 45: E474: Invalid argument: listchars=tab:>-,trail:.,extends:>,precedes:« Press ENTER or type command to continue
So, I'm trying to get past this, so I don't need to hit ENTER for every file in my list.
Then I need vimdiff call the ToHTML command, and then issue the command to add the HTML buffer to the working file:
:'<,'>w! >>overall_diff.html
In short, like me:
- Skip this issue with
listchars when vimdiff is vimdiff . This problem does not occur when I start vim , so I do not know why this happens when I start vimdiff . - Pass the list of colon commands in VIM to run them in
startup without requiring a change to my .vimrc file.
source share