Using Vim as a diff tool


Firstly I will start with why to not use diff. I am not suggesting a replacement, I have simply found that Vim offers a much better interface, that is available on most (*nix based) server environments for comparing and merging files side by side. Getting started vim -d file_original.txt file_new.txt Your tool of choice here [...]

Quick text replacement Vi tip

Vim logo

This came about as i wanted to replace just a few lines of text in vi. Work out what range of lines to select :set number Find the lines you wish to modify 35 #Hosts per intl 36 37 38 39 40 Do the replacement [...]