tom-doerr/vim_codex
소개
Supercharge your Vim editor with AI-powered code completion using OpenAI Codex. Boost productivity and save time with intelligent suggestions.
생산성 및 자동화측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original🤖 Vim Codex
An AI plugin that does the work for you.
This is a simple plugin for Vim that will allow you to use OpenAI Codex. To use this plugin you need to get access to OpenAI's Codex API.
Installation
The easiest way to install the plugin is to install it as a bundle. For example, using Pathogen:
Get and install pathogen.vim. You can skip this step if you already have it installed.
cd ~/.vim/bundlegit clone [email protected]:tom-doerr/vim_codex.git
Bundle installs are known to work fine also when using Vundle. Other bundle managers are expected to work as well.
After installing the plugin, you need to install the openai package::
pip3 install openai
After running :CreateCompletion once, the file ~/.config/openaiapirc is created where you need to enter your OpenAI authentication information.
You can find your authentication information on the website.
Usage
The plugin provides a CreateCompletion command which you can call by default using the mapping
<Leader>co.
You can give the CreateCompletion command the number of tokens it should produce as an argument, e.g. CreateCompletion 1000.
If you want to just complete the current line, run CreateCompletionLine.
To complete the current text from insert and normal mode using Ctrl+x, you can add the following lines to your .vimrc::
nnoremap <C-x> :CreateCompletion<CR>
inoremap <C-x> <Esc>li<C-g>u<Esc>l:CreateCompletion<CR>
Updating
Manually
In order to update the plugin, go to its bundle directory and use Git to update it:
cd ~/.vim/bundle/vim_codexgit pull
With Vundle
Use the :BundleUpdate command provided by Vundle, for example invoking
Vim like this::
% vim +BundleUpdate
관련 프로젝트 살펴보기
불러오는 중…