A Vim plugin for seamless integration with Aider, an AI pair programming tool.
- Start Aider directly from Vim
- Easily add the current file to Aider's context
- Reset Aider conversations without leaving Vim
- Supports reviewing changes before committing (no auto-commits by default)
- Vim 8.1+ with terminal support
- Aider CLI tool installed and accessible in your PATH
Add the following to your .vimrc:
Plug 'ComeBertrand/vaider'Then run :PlugInstall.
Add the following to your .vimrc:
Plugin 'ComeBertrand/vaider'Then run :PluginInstall.
git clone https://github.com/ComeBertrand/vaider.git ~/.vim/bundle/vaiderThe plugin provides several configuration options:
" Disable auto-commits (default: 0)
let g:aider_autocommit = 0
" Custom Aider command (default: 'aider')
let g:aider_command = 'aider'
" Additional arguments for Aider
let g:aider_args = '--model gpt-4':AiderStart- Start Aider in a new terminal window:AiderAddFile- Add the current file to Aider's context:AiderReset- Reset the current Aider conversation
- Open your project files in Vim
- Start Aider using
:AiderStart - Navigate to a file you want to modify
- Add it to Aider's context using
:AiderAddFile - Interact with Aider in the terminal window
- Review changes before committing
MIT