Set relative line numbering when opening a file's directory.