Vim Recall繁體中文

Win32 GUI: simulate Windows ALT key

:simalt

Example

Normal 0 / 2

Win32 GUI: simulate Windows ALT key.

GUI menus

Visible menu
none
Before & after

Before

GUI menus

Visible menu
none

After

GUI menus

Visible menu
File menu is open (simulated Alt-F)

Subject: :simalt. Documentation-backed illustration; assumes Win32 GUI with stock File menu and winaltkeys not set to yes; not replay-verified. File menu is open (simulated Alt-F). No menu item has been activated yet.

Sample buffer
notes
Cursor on line 1, column 1
Details & Vim help

Win32 GUI: simulate Windows ALT key. This Ex reference uses the full command name; the alphabetical index omits arguments. Supply the ranges, arguments, flags and prerequisite state documented in the linked help. Press Enter to submit a complete command. The index spelling :sim[alt] puts the optional abbreviation suffix in square brackets; those brackets are not typed. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.