1.11M Members

vimrc

 
0
 

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
garrett@ubuntu-laptop:/etc$

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.

 
0
 

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/vim/vimrc
/etc/vim/vimrc.tiny

/etc$ find . | grep vim
./vim
./vim/vimrc
./vim/vimrc.tiny
You
This article has been dead for over six months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article