The best way to experiment in Command Mode is to create a dedicated Command Mode Window named "$". A major advantage of this is that you can observe in the Visual Mode window(s) the effect of the Command Mode commands. The cursor displayed in the Visual Mode window will correspond to the Command Mode "edit position".

A five line window can be created by pressing Escape (ESC Key) then clicking Command Mode Window or by using the default keyboard shortcut Alt-/. Alternatively, you can click Window then Create or the Win_Reserved( ) command to create a window of any size.


Command-Mode-Window.png


Win_Reserved($,10,BOTTOM)
Create the special Command Mode window "$" on the bottom with 10 lines.
Update
Re-display the current file in Visual Mode and immediately return to Command Mode.

This illustrates an application of the Update command which only updates the Visual Mode window and immediately returns to Command Mode. Since the "$" window now exists, it also switches to this window.

All edit changes performed in Command Mode can now be immediately observed in the Visual Mode window.

Related Resources