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

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

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)