-
Notifications
You must be signed in to change notification settings - Fork 0
/
refgo.txt
53 lines (36 loc) · 1.94 KB
/
refgo.txt
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
*refgo.txt* Share code references with ease.
*refgo.nvim*
==============================================================================
CONTENTS *refgo-contents*
1. Intro....................................|refgo-intro|
2. Commands.................................|refgo-commands|
==============================================================================
INTRO *refgo-intro*
This plugin helps you copy and jump to line references. A line reference can
be expressed as a file and a line (e.g. 'path/to/file:99').
* Copy a line reference to clipboard with |:RefCopy|
* Copy a line reference plus the surrounding lines to clipboard with |:RefCopyContext|
* Go to a reference with |:RefGo|
==============================================================================
COMMANDS *refgo-commands*
*:RefCopy*
:RefCopy
Copies the reference of the current line. It stores inside of the selection
registers (* and +) a reference with the following form: 'path/to/file:99'.
*:RefCopyContext*
:RefCopyContext {n}
Copies the reference of the current line, and the lines surounding the cursor.
It stores inside of the selection registers (* and +) a reference with the
following form:
> path/to/file:99
> ---
> this is the prev line
> this is the cursor line
> this is the next line
If the n parameter isn't set, the default behavior is to take the previous and
next line. If set, it will copy from the -n to the +n lines.
*:RefGo*
:RefGo {reference}
Goes to the provided reference or to the selection register '*' value if no
reference provided.
vim: ft=help tw=78 et ts=2 sw=2 sts=2 norl