An open API service indexing awesome lists of open source software.

https://github.com/sevenc-nanashi/rootfinder.vim

Vim plugin that adds g:rootfinder#find function.
https://github.com/sevenc-nanashi/rootfinder.vim

vim vim-plugin

Last synced: 9 months ago
JSON representation

Vim plugin that adds g:rootfinder#find function.

Awesome Lists containing this project

README

          

# rootfinder.vim

rootfinder is a Vim plugin that adds `g:rootfinder#find` function.

## Example usage
```vim
let root = g:rootfinder#find(expand('%:p:h'))
if len(root) < 1
let root = '.'
endif
execute 'Fern ' .. fnameescape(root) .. ' -drawer -width=40'
```
You can add more file/directory name with `g:rootfinder#pattern_extend`:
```vim
let g:rootfinder#pattern_extend = ['.my-root-file']
```

## License

This plugin is open source under MIT license.