Run Tcl script file
Example
Normal 0 / 2Command-line 1 / 2Normal 2 / 2Run Tcl script file.
Vim messages
Empty
Command entered · ready to apply
Vim messages
Empty
Loads and evaluates the exact contents of hello.tcl; Hello is displayed while the notes buffer stays unchanged.
Vim messages
Hello
Before & after
Before
Vim messages
Empty
After
Vim messages
Hello
Subject: :tclfile. Documentation-backed illustration; assumes +tcl and Tcl; readable prepared file, outside sandbox; not replay-verified. Loads and evaluates the exact contents of hello.tcl; Hello is displayed while the notes buffer stays unchanged.
notes
Cursor on line 1, column 1Details & Vim help
Run Tcl script file. 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 :tclf[ile] 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. This command requires a Vim build with +tcl support and compatible runtime libraries for the documented embedded language interface.