Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-09-2011, 12:53 PM   #1
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,712

Rep: Reputation: 53
ls -a *vim* does not find .vimrc notwithstanding it is there.

As you can easily see:
semoi@darkstar:~$ ls .vimrc
semoi@darkstar:~$ ls -a *vim* 
/bin/ls: cannot access *vim*: No such file or directory
What is my mistake?
Old 07-09-2011, 01:09 PM   #2
ReliaFree Maintainer
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware-current, Cross Linux from Scratch, Gentoo
Posts: 2,812
Blog Entries: 1

Rep: Reputation: 259Reputation: 259Reputation: 259
Filenames beginning with a dot aren't matched by a glob. You can use the dotglob option to make the match. Excecute --> shopt -s dotglob then try again.
1 members found this post helpful.
Old 07-09-2011, 01:40 PM   #3
Senior Member
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,712

Original Poster
Rep: Reputation: 53
I could have issued the command but instead I went first to the bash manual where I found the shopt builtin command with its -s option (set or enable) and the dotglob optname. Thanks a lot.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
hi i not getting my .vimrc file in this path ~/.vimrc dina3e Linux - Newbie 6 07-31-2012 05:36 PM
vim configuration (.vimrc) muthu_al Linux - Newbie 1 03-07-2011 11:56 PM
What's the command to reload .vimrc without restarting vim? cola Linux - Newbie 2 03-26-2010 02:41 PM
Configure php.vim in vimrc xeon123 Linux - Newbie 1 03-24-2010 01:16 PM
wher is my vimrc file and the .vim directory slac 10.0 rkrishna Slackware 3 04-11-2005 04:50 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration