title: Open all files (including hidden) in vi
body: <p>I have a file structure like so</p>
  
  <pre><code>/foo/bar/
  ├── .foo.cfg
  ├── foo.cfg
  ├── foo.data
  ├── foo.py
  ├── .svn
  │   ├── ...
  │   ├── ...
  │   └── ...
  ├── .
  └── ..
  </code></pre>
  
  <p>I want to open all of the hidden and non hidden files into vim. I could do it manually like so</p>
  
  <pre><code>vi .foo.cfg foo.cfg foo.data foo.py
  </code></pre>
  
  <p>but that doesn't work when there are 100+ files. I have also tried the following with no success</p>
  
  <pre><code>#hidden files not loaded
  vi *
  
  #Includes folders and '.' and '..'
  vi * .*
  
  #loads files one at a time
  for i in `ls -a` ; do vi $i; done;
  
  #loads files one at a time
  find . -name "*" -type f -maxdepth 1 -exec vi {} ";"
  </code></pre>