1
- *term.txt* For Vim version 8.0 . Last change: 2017 Feb 02
1
+ *term.txt* For Vim version 8.1 . Last change: 2017 Oct 14
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -111,6 +111,16 @@ have a problem with this, disable bracketed paste by putting this in your
111
111
If this is done while Vim is running the 't_BD' will be sent to the terminal
112
112
to disable bracketed paste.
113
113
114
+ If your terminal supports bracketed paste, but the options are not set
115
+ automatically, you can try using something like this: >
116
+
117
+ if &term =~ "screen"
118
+ let &t_BE = "\e[?2004h"
119
+ let &t_BD = "\e[?2004l"
120
+ exec "set t_PS=\e[200~"
121
+ exec "set t_PE=\e[201~"
122
+ endif
123
+ <
114
124
*cs7-problem*
115
125
Note: If the terminal settings are changed after running Vim, you might have
116
126
an illegal combination of settings. This has been reported on Solaris 2.5
@@ -295,13 +305,11 @@ OUTPUT CODES *terminal-output-codes*
295
305
t_ts set window title start (to status line) *t_ts* *'t_ts'*
296
306
t_ue underline end *t_ue* *'t_ue'*
297
307
t_us underline mode *t_us* *'t_us'*
298
- t_Ce undercurl end *t_Ce* *'t_Ce'*
299
- t_Cs undercurl mode *t_Cs* *'t_Cs'*
300
308
t_ut clearing uses the current background color *t_ut* *'t_ut'*
301
309
t_vb visual bell *t_vb* *'t_vb'*
302
310
t_ve cursor visible *t_ve* *'t_ve'*
303
311
t_vi cursor invisible *t_vi* *'t_vi'*
304
- t_vs cursor very visible *t_vs* *'t_vs'*
312
+ t_vs cursor very visible (blink) *t_vs* *'t_vs'*
305
313
*t_xs* *'t_xs'*
306
314
t_xs if non-empty, standout not erased by overwriting (hpterm)
307
315
*t_xn* *'t_xn'*
@@ -311,10 +319,16 @@ OUTPUT CODES *terminal-output-codes*
311
319
t_ZR italics end *t_ZR* *'t_ZR'*
312
320
313
321
Added by Vim (there are no standard codes for these):
322
+ t_Ce undercurl end *t_Ce* *'t_Ce'*
323
+ t_Cs undercurl mode *t_Cs* *'t_Cs'*
324
+ t_Te strikethrough end *t_Te* *'t_Te'*
325
+ t_Ts strikethrough mode *t_Ts* *'t_Ts'*
314
326
t_IS set icon text start *t_IS* *'t_IS'*
315
327
t_IE set icon text end *t_IE* *'t_IE'*
316
328
t_WP set window position (Y, X) in pixels *t_WP* *'t_WP'*
317
- t_WS set window size (height, width) in characters *t_WS* *'t_WS'*
329
+ t_GP get window position (Y, X) in pixels *t_GP* *'t_GP'*
330
+ t_WS set window size (height, width in cells) *t_WS* *'t_WS'*
331
+ t_VS cursor normally visible (no blink) *t_VS* *'t_VS'*
318
332
t_SI start insert mode (bar cursor shape) *t_SI* *'t_SI'*
319
333
t_SR start replace mode (underline cursor shape) *t_SR* *'t_SR'*
320
334
t_EI end insert or replace mode (block cursor shape) *t_EI* *'t_EI'*
@@ -323,6 +337,7 @@ Added by Vim (there are no standard codes for these):
323
337
| xterm-8bit | | v:termresponse | | 'ttymouse' | | xterm-codes |
324
338
t_u7 request cursor position (for xterm) *t_u7* *'t_u7'*
325
339
see | 'ambiwidth' |
340
+ t_RF request terminal foreground color *t_RF* *'t_RF'*
326
341
t_RB request terminal background color *t_RB* *'t_RB'*
327
342
t_8f set foreground color (R, G, B) *t_8f* *'t_8f'*
328
343
| xterm-true-color |
@@ -332,6 +347,29 @@ Added by Vim (there are no standard codes for these):
332
347
| xterm-bracketed-paste |
333
348
t_BD disable bracketed paste mode *t_BD* *'t_BD'*
334
349
| xterm-bracketed-paste |
350
+ t_SC set cursor color start *t_SC* *'t_SC'*
351
+ t_EC set cursor color end *t_EC* *'t_EC'*
352
+ t_SH set cursor shape *t_SH* *'t_SH'*
353
+ t_RC request terminal cursor blinking *t_RC* *'t_RC'*
354
+ t_RS request terminal cursor style *t_RS* *'t_RS'*
355
+
356
+ Some codes have a start, middle and end part. The start and end are defined
357
+ by the termcap option, the middle part is text.
358
+ set title text: t_ts {title text} t_fs
359
+ set icon text: t_IS {icon text} t_IE
360
+ set cursor color: t_SC {color name} t_EC
361
+
362
+ t_SH must take one argument:
363
+ 0, 1 or none blinking block cursor
364
+ 2 block cursor
365
+ 3 blinking underline cursor
366
+ 4 underline cursor
367
+ 5 blinking vertical bar cursor
368
+ 6 vertical bar cursor
369
+
370
+ t_RS is sent only if the response to t_RV has been received. It is not used
371
+ on Mac OS when Terminal.app could be recognized from the termresponse.
372
+
335
373
336
374
KEY CODES *terminal-key-codes*
337
375
Note: Use the <> form if possible
0 commit comments