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

https://github.com/gera2ld/go-to-js

A Vim plugin to open JavaScript files under cursor.
https://github.com/gera2ld/go-to-js

Last synced: 5 months ago
JSON representation

A Vim plugin to open JavaScript files under cursor.

Awesome Lists containing this project

README

          

# go-to-js

A Vim plugin to open JavaScript files under cursor.

## Usage

Install using Vim-Plug:

```vim
Plug 'gera2ld/go-to-js'
```

Go to file under cursor with `gf`.

## Features

Suppose we have a project with structure below:

```
▾ src/
▾ module/
index.js
other.js
README.md
```

- Relative paths

In `src/other.js`, paths below will all resolve to `src/module/index.js`:

- `./module/index.js`
- `./module/index`
- `./module`

- Alias `#`

`#/module` will resolve to `src/module`.