For mainframe modernization I'm using git to modify my Cobol programs.
To compare two programs one in Dev stage and another in Prod stage, I would like to compare them only from column 1 to 72.
I tried using git diff, git difftool and vimdiff but I don't know how to customize or set them and replace the default which is 80 to 72.
I tried to find the .vimrc file on my pc but the result is not a success.
Unsuccessfully, I tried to set the tool via vim but that does not work.
Please, could you help me? Regards.
I tried to find the .vimrc file on my pc to set the new parameters but I don't find it I tried to set the tool via vim but that does not work.
You can extract the first 72 characters of either of the files using
cutand compare those (replacefile.1andfile.2with actual paths to the files you want to compare):If you want to compare side by side, use
diff --side-by-side.