title: Vim: Ignore Special Path in Search
body: <p><br>
  In my .vimrc file, I have two very useful lines:</p>
  
  <pre><code>set path=~/nbapp/**
  set backupdir=~/nbapp/temp
  </code></pre>
  
  <p>The first line allows me to search in my project directory and subdirectories. The second line makes vim create backup files in a special temporary folder, rather than disturbing me by adding tens of backup files having the exact same name except for a '~' at the end. However, since the temporary files are still inside the 'nbapp' folder (and I want to keep them there because they are related to the project), it means they are also going to be searched when I make a search, which sometimes disturb me, because I keep looking at searched results, yet to discover that they are actually in the temporary folder.</p>
  
  <p>Is there any possible way to exclude paths from search (i.e. vimgrep)? I want to exclude the 'temp' folder.</p>
  
  <p>Regards,<br>
  Rafid</p>