title: How to source all vim files in directory
body: <p>I have split my .vimrc into several files and placed them into <code>~/vimfiles/vimrc.d/</code>.</p>
  
  <p>Currently I source each file in that directory using exact name:</p>
  
  <pre><code>source ~/vimfiles/vimrc.d/file1.vim
  source ~/vimfiles/vimrc.d/file2.vim
  </code></pre>
  
  <p>etc.</p>
  
  <p>How to make a loop thourgh all files in that directory so i could only have to do such loop in my .vimrc:</p>
  
  <pre><code>for file in ~/vimfiles/vimrc.d/*.vim
     source file
  enfor
  </code></pre>