Why the following doesn't include hidden files ? ls -a *vim* that will return  ls: cannot access '*vim*': No such file or directoryls -a | grep vim .vim.vimrc
How to ls with globbing for hidden files?
ls;wildcards;dot files
If you are explicitly looking for hidden files use a pattern that starts with dot,ls .*vim*Then there's no need for the -a flag.