https://github.com/hrsh7th/vim-effort-gf
https://github.com/hrsh7th/vim-effort-gf
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hrsh7th/vim-effort-gf
- Owner: hrsh7th
- Created: 2019-03-30T08:55:45.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-15T14:01:10.000Z (almost 6 years ago)
- Last Synced: 2025-02-22T12:42:24.589Z (8 months ago)
- Language: Vim script
- Size: 2.93 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vim-effort-gf
improved gf command.# Setting
## `&isfname`
You can change `` behavior.Set `isfname=\\` if you want to resolve php's use statement.
## `let g:effort_gf#config.enable_findroot`
If `v:true`, search file from root dir when can't find by upward search.## `let g:effort_gf#config.converter`
You can add additional converters.```
let g:effort_gf#config = {}
let g:effort_gf#config.converters = {}function! g:effort_gf#config.converters.map_php_namespace(word)
if effort_gf#is('~/path/to/your/php-project')
return substitute(a:word, '^App', 'src/app', 'g')
endif
return a:word
endfunction
```