https://github.com/mllg/vim-cdroot
Simple vim script to change directory to the project root
https://github.com/mllg/vim-cdroot
Last synced: about 1 month ago
JSON representation
Simple vim script to change directory to the project root
- Host: GitHub
- URL: https://github.com/mllg/vim-cdroot
- Owner: mllg
- License: mit
- Created: 2020-01-06T12:21:16.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-15T10:56:10.000Z (almost 4 years ago)
- Last Synced: 2025-03-31T15:25:52.152Z (about 1 month ago)
- Language: Vim script
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vim-cdroot
Simple vim script to change directory to the project root.
In contrast to other similar plugins, this one behaves properly if configuration files are managed via a git repository in the home directory.
Stops as soon as `$HOME` or `/` is reached while ascending directories to search the project root directory.To configure the project root markers, set `g:cdroot_markers`:
```vim
let g:cdroot_markers = ['.projectroot', '.git', '.hg', '.bzr', '.svn'] " default markers
```For more configurability, see [vim-projectroot](https://github.com/dbakker/vim-projectroot) or [vim-rooter](https://github.com/airblade/vim-rooter).