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.
- Host: GitHub
- URL: https://github.com/gera2ld/go-to-js
- Owner: gera2ld
- Created: 2019-02-19T09:24:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-09-07T17:29:33.000Z (almost 7 years ago)
- Last Synced: 2025-12-09T15:23:29.130Z (8 months ago)
- Language: Vim script
- Size: 1.95 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.