airblade/vim-rooter — pull request #15 by delphinus35 (2012-11-12 00:27:04+00:00)
Title: fix re because this match() returns -1 if &iskeyword includs ':'

If &iskeyword include `:` (eg. .vim filetype), press `D` (show diffs) in [fugitive][fugitive] window, and plugin shows an error below.

```
Error detected while processing function 70_ChangeToRootDirectory:
line 7:
E472: Command failed
Press ENTER or type command to continue
```

fugitive windows have paths such as `fugitive://path/to/filename`, and old re `^\<.\+\>` should match `fugitive`. But if &iskeyword has ':', this matches `fugitive:` and yields an error.

[fugitive]: https://github.com/tpope/vim-fugitive "tpope/vim-fugitive"