Created
May 23, 2013 15:50
-
-
Save jferris/5637094 to your computer and use it in GitHub Desktop.
Per-project path settings to make :find more useful
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " Lives inside a project directory | |
| setl path+=lib/events | |
| setl path+=lib/advertiser | |
| setl path+=lib/model_view |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| " 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