blob: 72b45748175217e253ace40e81fafb81826dd419 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
This plugin implements the "gf" command of vim as a lua plugin, which
tries to open a file having the same name as the string currently under
the primary cursor. It recognises the filenames in the following cases.
```
vis.c
vis.c:222 (opens file at specific line offset)
vis.c:/goto (opens file at first match of search pattern after '/')
```
This patch is a rework of the following Github PR and supersedes it.
https://github.com/martanne/vis/pull/558
To install add the repository (either directly or for example as a git
submodule) to your vis configuration directory `~/.config/vis/plugins/`
as `~/.config/vis/plugins/vis-open-file-under-curstor` and then add to
your `~/.config/vis/visrc.lua` this line:
```
require('plugins/vis-open-file-under-cursor')
```
All issues, questions, complaints, or (even better!) patches
should be send via email to
[~mcepl/devel@lists.sr.ht](mailto:~mcepl/devel@lists.sr.ht) email
list (for patches use [git send-email](https://git-send-email.io/)).
|