Skip to content

Instantly share code, notes, and snippets.

@jferris
Created May 23, 2013 15:50
Show Gist options
  • Select an option

  • Save jferris/5637094 to your computer and use it in GitHub Desktop.

Select an option

Save jferris/5637094 to your computer and use it in GitHub Desktop.
Per-project path settings to make :find more useful
" Lives inside a project directory
setl path+=lib/events
setl path+=lib/advertiser
setl path+=lib/model_view
" Load .vimrc from the current directory if there is one
function! LoadCwdConfig()
let rcfile = join([getcwd(), ".vimrc"], "/")
if filereadable(rcfile)
execute "source " . rcfile
end
endfunction
autocmd BufRead * call LoadCwdConfig()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment