# fittencode.vim **Repository Path**: mirrors_adah1972/fittencode.vim ## Basic Information - **Project Name**: fittencode.vim - **Description**: Fitten Code AI Programming Assistant for Vim - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-02-16 - **Last Updated**: 2026-03-28 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Fitten Code Vim Fitten Code AI Programming Assistant Vim Edition, helps you to use AI for automatic completion in vim, with support for functions like login, logout, shortcut key completion, and single file plugin, convenient for integration into your environment. Fitten Code AI编程助手 Vim 版本,帮助您在vim中通过AI进行自动补全,支持功能:登录、登出、快捷键补全,单文件插件,方便集成到您的环境当中。 ![img](./vim.gif) ## Dependencies `Vim` >= 9.0. The support of `NeoVim` is [here](https://github.com/luozhiya/fittencode.nvim) contributed by luozhiya. ## Install ```bash # github install mkdir -p ~/.vim/plugin curl -o ~/.vim/plugin/fittencode.vim https://raw.githubusercontent.com/fittentech/fittencode.vim/master/plugin/fittencode.vim # gitee install mkdir -p ~/.vim/plugin curl -o ~/.vim/plugin/fittencode.vim https://gitee.com/fittentech/fittentech.vim/raw/master/plugin/fittencode.vim ``` Installing by various Vim plug-in managers should also work. ## Usage If you haven't registered yet, please click [here](https://codewebchat.fittentech.cn:15443?ide=vim) to register. After registration, enter `:Fittenlogin ` in vim command line to login. After successful login, press `` to toggle completion and `` to accept the completion. You can also modify the shortcut key binding by `g:fitten_trigger` and `g:fitten_accept_key` to your preferred completion shortcut. 如果您还没注册,请先点击[这里](https://codewebchat.fittentech.cn:15443?ide=vim)注册。 注册完成后,在vim命令行输入`:Fittenlogin `登录;登录成功后,按下``即可弹出补全提示,按下 `` 键完成补全,您也可以修改`g:fitten_trigger`和`g:fitten_accept_key`,改为自己习惯的补全快捷键。 ```python # Intelligent completion example for input code def calculate_area(radius): return 3.14 * radius ** 2 # Intelligent prompt example when the cursor is on the function name and the shortcut key is pressed calculate_area(|) ``` Use `:FittenAutoCompletionOn` or `:FittenAutoCompletionOff` to enable/disable the auto completion feature. 使用 `:FittenAutoCompletionOn` 或 `:FittenAutoCompletionOff`开启/关闭自动补全功能。 You can also enter `:Fittenlogout` to log out. 您还可以输入`:Fittenlogout`登出。 For more advanced usage, esp. using your own trigger functions, see `:help fitten-advanced`. 有关更高级的用法,特别是使用您自己的触发器函数,请参阅`:help fitten advanced`。