1,105,242 Community Members

vimrc

Member Avatar
lewashby
Posting Pro
559 posts since Oct 2009
Reputation Points: 0 [?]
Q&As Helped to Solve: 1 [?]
Skill Endorsements: 0 [?]
 
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.

Member Avatar
mike_2000_17
21st Century Viking
4,065 posts since Jul 2010
Reputation Points: 2,244 [?]
Q&As Helped to Solve: 796 [?]
Skill Endorsements: 72 [?]
Moderator
Featured
Sponsor
 
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 three months: Start a new discussion instead
Post:
Start New Discussion
Tags Related to this Article