Ask Vim
AI-powered Vim command learning assistant for VSCode that provides context-aware command suggestions based on your cursor position.
Features
- 💡 Ask AI directly about Vim commands and operations
- 🎯 Context-aware responses considering cursor position and code context
- 🌏 Multi-language support (English, Japanese, Chinese, Korean, French, German, Spanish)
- 🤖 Choice of LLM providers: Google AI (Gemini) or Amazon Bedrock
- 📊 Clear presentation of optimal operations and alternatives
Requirements
Authentication credentials for one of the following AI APIs:
Google AI (Gemini)
Amazon Bedrock
- AWS credentials (either):
- AWS Profile Name
- Access Key ID and Secret Access Key
Extension Settings
This extension contributes the following settings:
Basic Settings
vim-command-assistant.responseLanguage : Set response language (default: "English")
- Supported languages: "English", "Japanese", "Chinese", "Korean", "French", "German", "Spanish"
LLM Provider Settings
vim-command-assistant.llmProvider : Select LLM provider ("google" or "bedrock")
Google AI (Gemini) Settings
vim-command-assistant.googleApiKey : Google AI API Key
vim-command-assistant.googleModelId : Model ID (default: "gemini-2.0-flash-lite-preview-02-05")
Amazon Bedrock Settings
vim-command-assistant.bedrockProfile : AWS Profile Name (optional)
vim-command-assistant.bedrockRegion : AWS Region (default: "us-east-1")
vim-command-assistant.bedrockModelId : Model ID (default: "anthropic.claude-3-5-haiku-20241022-v1:0")
vim-command-assistant.bedrockAccessKeyId : AWS Access Key ID (if not using profile)
vim-command-assistant.bedrockSecretAccessKey : AWS Secret Access Key (if not using profile)
vim-command-assistant.bedrockSessionToken : AWS Session Token (optional)
Usage
- Open Command Palette (
Cmd+Shift+P / Ctrl+Shift+P )
- Select "Vim: Show Command Help"
- Enter your Vim-related question (e.g., "How do I delete this line?" "How to replace a word?")
- AI will suggest optimal Vim commands considering your current cursor position and code context
Responses are displayed in the following format:
- Optimal operation method (key input and description)
- List of alternative operation methods
Known Issues
- Some Vim plugin-specific commands may not be considered
- Suggestions might be limited to basic operations for complex operation sequences
Release Notes
0.0.1
- Initial release
- Support for Google AI (Gemini) and Amazon Bedrock
- Multi-language support implementation
- Context-aware responses considering cursor position
For Developers
Developed following the extension guidelines:
Documentation
License
MIT
Enjoy!
| |