gmarik/github-search.vim — pull request #2 by AndrewRadev (2011-10-09 07:01:37+00:00)
Title: User option to determine clone path

This pull request adds the variable `g:github_search_path_format`, which determines where to clone the repo. For example, if i were to clone the `foo/bar` project, I'd put it into `~/src/bar`, without prefixing it with an author. I'm sure different people have different conventions on this, so the variable introduces three placeholders:

- `:repo` -- the full repo path, like `gmarik/github-search.vim`
- `:author` -- the author of the repo, in this case `gmarik`
- `:project` -- the name of the project, `github-search.vim`

So, the default path would be `~/src/:author/:project`, or just `~/src/:repo`.