-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprimary-terminal.txt
81 lines (54 loc) · 3.33 KB
/
primary-terminal.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
*primary-terminal.txt* Simple management of the built-in terminal
Author: Chris DeLuca <https://www.chrisdeluca.me/>
License: Same terms as Vim itself (see |primary-terminal-license|)
ABOUT *primary-terminal*
vim-primary-terminal is a dead simple terminal manager for Neovim (and
eventually Vim 8).
It provides thin conveince wrappers around core terminal functionality,
focused on managing a single terminal instance.
Basically, this plugin is proud to barely do anything.
The first time a 'terminal' is created, vim-primary-terminal identifies
it as the primary terminal, applying mappings and commands to quickly
switch to and send input to that buffer. This primary designation
persists until the buffer is destroyed; after that, the next 'terminal'
created becomes the primary terminal.
Commands and mappings that manage the primary terminal will create a new
'terminal' if one doesn't already exist.
That's it.
COMMANDS *primary-terminal-commands*
vim-primary-terminal provides the following commands:
*:PrimaryTerminalOpen*
:PrimaryTerminalOpen Open the primary terminal buffer in the current
window.
*:PrimaryTerminalOpenSplit*
:PrimaryTerminalOpenSplit Open the primary terminal buffer in a horizontal
split window.
*:PrimaryTerminalOpenVsplit*
:PrimaryTerminalOpenVsplit Open the primary terminal buffer in a vertical
split window.
*:PrimaryTerminalOpenDynamic*
:PrimaryTerminalOpenDynamic Open the primary terminal buffer in either a
horizontal or vertical split window. If the
current window is less than 120 columns, the
window will be horizontal. Otherwise, it will be
vertical. 120 was chosen as a rough estimate for
space enough for 2 side-by-side windows.
*:T*
:T {args} Send {args} to the primary terminal.
*:T!*
:T! {args} Like |:T|, but load the primary terminal buffer in
the preview window.
*:Tkill*
:Tkill Send `Ctrl-c` to the terminal.
MAPPINGS *primary-terminal-mappings*
vim-primary-terminal provides the following |<Plug>| mappings:
<Plug>(PrimaryTerminalOpen) Execute :PrimaryTerminalOpen
<Plug>(PrimaryTerminalOpenSplit) Execute :PrimaryTerminalOpenSplit
<Plug>(PrimaryTerminalOpenVsplit) Execute :PrimaryTerminalOpenVsplit
ISSUES *primary-terminal-issues*
Bug reports and pull requsts are welcome!
Visit https://github.com/bronzehedwick/vim-primary-terminal/issues
LICENSE *primary-terminal-license*
Copyright © 2019–2021 Chris DeLuca
Licensed under the same terms as Vim itself.
vim:tw=78:sw=4:ts=8:ft=help:norl: