Rode includes a Vim-inspired command mode that allows you to execute common editor operations using familiar colon commands.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/kashsuks/rode/llms.txt
Use this file to discover all available pages before exploring further.
Command Input Bar
The command input bar appears at the bottom of the editor, similar to Vim’s command line.Opening Command Mode
Press: to open the command input bar.
How It Works
Supported Commands
Rode implements the most commonly used Vim commands::w - Write (Save)
:w - Write (Save)
Saves the current file to disk.Aliases:
:w, :writeEquivalent: Cmd+S:q - Quit
:q - Quit
Closes the current tab.Aliases:
:q, :quitEquivalent: Cmd+W:wq - Write and Quit
:wq - Write and Quit
Saves the current file and closes the tab.Alias:
:wqEquivalent: Cmd+S followed by Cmd+W:e - Edit
:e - Edit
Opens the file picker dialog.Aliases:
:e, :editEquivalent: Cmd+O:new - New File
:new - New File
Creates a new empty file in a new tab.Alias:
:newEquivalent: Cmd+NCommand Workflow
Command Processing
When you submit a command, Rode:- Trims whitespace from your input
- Matches against known commands (both short form and long form)
- Translates to internal command (e.g., “Save File”)
- Executes the command through the command palette system
- Closes the command bar automatically
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
: | Open command input bar |
Enter | Execute command |
Escape | Cancel and close |
The
: key automatically opens the command bar and is ready for input. You don’t need to type the colon manually.Differences from Vim
Rode’s Vim mode is inspired by Vim but is not a complete implementation:What's Included
- Colon command syntax
- Common file operations (
:w,:q,:wq) - Command aliases
- Command bar UI
What's Not Included
- Modal editing (Normal/Insert/Visual modes)
- Movement commands (hjkl, w, b, etc.)
- Text objects and motions
- Macros and registers
Command Extensions
The command system is designed to be extensible. Commands are processed through the same system that powers the Command Palette, meaning:- Commands trigger the same actions as menu items
- New commands can be added by extending the
process_commandfunction - All command palette features are accessible via Vim commands
Integration with Command Palette
Vim commands and the Command Palette work together seamlessly:- Consistency between command interfaces
- Easy addition of new commands
- Shared command execution logic
- Unified keyboard shortcut handling
Future Enhancements
Planned improvements to Vim mode:Additional Commands
:sp/:splitfor split views:setfor runtime configuration:helpfor command reference
The Vim command mode provides a familiar interface for developers transitioning from Vim or looking for quick keyboard-driven operations.