-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailminusf.txt
69 lines (54 loc) · 3.01 KB
/
tailminusf.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
*TailMinusF.txt* Watch the contents of a file in real time
Author: Jason Heddings (jason@heddings.com)
For Vim version 6.0 and above
Last change: 05 October, 2005
1. Overview |tailminusf-about|
2. Commands |tailminusf-commands|
3. Configuration |tailminusf-configure|
==============================================================================
*tailminusf-about*
1. Overview~
TailMinusF allows you to view the contents of a file in real time. When a
change in the file is detected, the window displaying the file is updated and
repositioned to the last line.
The update is not exactly real time, but usually updates within a few seconds
of the file change. The update interval of the output is determined by the
|updatetime| parameter, along with continued usage of Vim. This means that if
you are not doing any editing or motion commands, the preview window will not
be updated. See |CursorHold| for more information.
Because this window becomes the preview window, it will accept all related
commands. For more information, see |preview-window|.
==============================================================================
*tailminusf-commands*
2. Commands~
The TailMinusF plugin does not create any automatic mappings, but provides the
following commands:
|:Tail| begin watching the specified file
*:Tail*
:Tail <filename>
Begin watching the specified file in the preview window. This will
cause any existing preview windows to be closed. If the file is
already open in another buffer, that buffer will be wiped out.
Once open, the window accepts all preview window commands. For example, to
close the preview window, use |:pclose|.
==============================================================================
*tailminusf-configure*
2. Configuration~
TailMinusF may be customized using variables set by the |let| command in your
.vimrc file. The default values for the options are shown in square brackets.
|'TailMinusF_Height'| Specify the height of the preview window [10]
|'TailMinusF_Center_Win'| Center the output in the preview window [0]
*'TailMinusF_Height'*
TailMinusF_Height~
Using this setting, you can alter the height of the preview window that is
created when |:Tail| is called for a file. >
let g:TailMinusF_Height = 12
<
TailMinusF_Center_Win~
When set to true, this will cause the last line of the output to be centered
in the preview window. By default, the last line of output will be on the
last line of the window >
let g:TailMinusF_Center_Win = 1
<
==============================================================================
vim:textwidth=78:tabstop=8:noexpandtab:filetype=help