https://github.com/pablopunk/dynamic-file-completion.vim
Vim's native file completion <c-x><c-f> but relative to the current file
https://github.com/pablopunk/dynamic-file-completion.vim
Last synced: 5 months ago
JSON representation
Vim's native file completion <c-x><c-f> but relative to the current file
- Host: GitHub
- URL: https://github.com/pablopunk/dynamic-file-completion.vim
- Owner: pablopunk
- Created: 2018-10-10T15:42:38.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-07T13:12:41.000Z (over 7 years ago)
- Last Synced: 2024-10-19T08:58:42.087Z (over 1 year ago)
- Language: Vim script
- Homepage:
- Size: 1000 Bytes
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Dynamic file completion
> Vim's native file completion but relative to the current file
## Usage
```js
// You're inside /components/main.js
import {LinkComponent} from './' // Here you press to get a list of files inside /components/
```
This plugin changes the current directory of vim just when you're on **Insert mode**, so you get the completion without giving up other features in normal mode.
## Install
I use [vim-plug](https://github.com/junegunn/vim-plug)
```vim
Plug 'pablopunk/dynamic-file-completion'
```
## Related
* [My dotfiles](https://github.com/pablopunk/dotfiles)