Open large text files Ubuntu Vim

Opening large log files with the default text editor or nano very quickly becomes a resource hogging nightmare. To solve this install Vim:

sudo apt-get install vim

Open the file using vim:

vim filename

You might need to press E to edit this file. Should you want to search for a particular word or date within this file, press:


To iterate through the search results you can press:

n for next and N for previous