4 From: Bram Moolenaar <Bram@moolenaar.net>
6 Content-Type: text/plain; charset=ISO-8859-1
7 Content-Transfer-Encoding: 8bit
11 Problem: It is not possible to force a redraw of status lines. (Gary
13 Solution: Add the ":redrawstatus" command.
14 Files: runtime/doc/various.txt, src/ex_cmds.h, src/ex_docmd.c,
18 *** ../vim-6.2.196/runtime/doc/various.txt Sun Jun 1 12:20:37 2003
19 --- runtime/doc/various.txt Wed Jan 21 13:57:43 2004
22 ! *various.txt* For Vim version 6.2. Last change: 2003 May 11
25 VIM REFERENCE MANUAL by Bram Moolenaar
27 ! *various.txt* For Vim version 6.2. Last change: 2004 Jan 21
30 VIM REFERENCE MANUAL by Bram Moolenaar
33 or function. Also when halfway a mapping and
37 <Del> When entering a number: Remove the last digit.
38 Note: if you like to use <BS> for this, add this
39 ! mapping to your .vimrc:
40 :map CTRL-V <BS> CTRL-V <Del>
41 ! See |:fixdel| if your <Del> key does not do what you
44 :as[cii] or *ga* *:as* *:ascii*
46 or function. Also when halfway a mapping and
49 + *:redraws* *:redrawstatus*
50 + :redraws[tatus][!] Redraw the status line of the current window. When !
51 + is included all status lines are redrawn.
52 + Useful to update the status line(s) when 'statusline'
53 + includes an item that doesn't cause automatic
57 <Del> When entering a number: Remove the last digit.
58 Note: if you like to use <BS> for this, add this
59 ! mapping to your .vimrc: >
60 :map CTRL-V <BS> CTRL-V <Del>
61 ! < See |:fixdel| if your <Del> key does not do what you
64 :as[cii] or *ga* *:as* *:ascii*
65 *** ../vim-6.2.196/src/ex_cmds.h Sun Jan 18 20:46:13 2004
66 --- src/ex_cmds.h Mon Jan 19 12:13:22 2004
70 BANG|FILES|TRLBAR|CMDWIN),
71 EX(CMD_redraw, "redraw", ex_redraw,
73 + EX(CMD_redrawstatus, "redrawstatus", ex_redrawstatus,
74 + BANG|TRLBAR|CMDWIN),
75 EX(CMD_registers, "registers", ex_display,
76 EXTRA|NOTRLCOM|TRLBAR|CMDWIN),
77 EX(CMD_resize, "resize", ex_resize,
78 *** ../vim-6.2.196/src/ex_docmd.c Sun Jan 18 21:12:26 2004
79 --- src/ex_docmd.c Thu Jan 22 17:22:52 2004
83 static void ex_redo __ARGS((exarg_T *eap));
84 static void ex_redir __ARGS((exarg_T *eap));
85 static void ex_redraw __ARGS((exarg_T *eap));
86 + static void ex_redrawstatus __ARGS((exarg_T *eap));
87 static void close_redir __ARGS((void));
88 static void ex_mkrc __ARGS((exarg_T *eap));
89 static void ex_mark __ARGS((exarg_T *eap));
93 RedrawingDisabled = r;
99 + * ":redrawstatus": force redraw of status line(s)
103 + ex_redrawstatus(eap)
106 + #if defined(FEAT_WINDOWS)
107 + int r = RedrawingDisabled;
110 + RedrawingDisabled = 0;
113 + status_redraw_all();
115 + status_redraw_curbuf();
117 + # ifdef FEAT_VISUAL
118 + VIsual_active ? INVERTED :
121 + RedrawingDisabled = r;
128 *** ../vim-6.2.196/src/screen.c Mon Aug 4 20:55:46 2003
129 --- src/screen.c Thu Jan 22 17:22:13 2004
135 - # if defined(FEAT_KEYMAP) || defined(PROTO)
137 * mark all status lines of the current buffer for redraw
148 * Redraw all status lines that need to be redrawn.
150 *** ../vim-6.2.196/src/version.c Sun Jan 25 19:28:46 2004
151 --- src/version.c Sun Jan 25 19:30:35 2004
155 { /* Add new patch number below this line */
161 No children may attend school with their breath smelling of "wild onions."
162 [real standing law in West Virginia, United States of America]
164 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
165 /// Sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
166 \\\ Project leader for A-A-P -- http://www.A-A-P.org ///
167 \\\ Help AIDS victims, buy here: http://ICCF-Holland.org/click1.html ///