We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,263 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

vimrc

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.

2
Contributors
1
Reply
5 Hours
Discussion Span
4 Months Ago
Last Updated
2
Views
Related Article: Vim, Pathogen, and GUIColorScheme is a Linux and Unix discussion thread by vikingsheepman that has 1 reply and was last updated 3 months ago.
Garrett85
Posting Pro in Training
426 posts since Oct 2009
Reputation Points: 10
Solved Threads: 1
Skill Endorsements: 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
mike_2000_17
21st Century Viking
Moderator
3,139 posts since Jul 2010
Reputation Points: 2,062
Solved Threads: 625
Skill Endorsements: 41

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0409 seconds using 2.47MB