garrett@ubuntu-laptop:/etc$ ls -l vim*
total 8
-rw-r--r-- 1 root root 2215 Aug 29 16:23 vimrc
-rw-r--r-- 1 root root 662 Aug 29 16:43 vimrc.tiny
garrett@ubuntu-laptop:/etc$ cat vimrc
cat: vimrc: No such file or directory

Could someone please explain how the abbove is possible? How is vimrc showing up as a file but when I try and cat it I get No such file or directory. I can also do "vi vimrc" and I get a blank page as if I were creating a new file rather than editing an existing one.

Edited 4 Years Ago by lewashby

Well, on my computer, the vimrc file is in the /etc/vim/ directory, and if I do the ls -l vim* command, I get the same result. Try this:

$ cat /etc/vim/vimrc

N.B.: To find a file, it is easier to use commands like these:

/etc$ locate vimrc

/etc$ find . | grep vim

Edited 4 Years Ago by mike_2000_17: nota bene

This article has been dead for over six months. Start a new discussion instead.