• Stars
    star
    249
  • Rank 162,053 (Top 4 %)
  • Language
    Python
  • License
    MIT License
  • Created about 3 years ago
  • Updated about 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Supercharge your Vim editor with AI-powered code completion using OpenAI Codex. Boost productivity and save time with intelligent suggestions.

πŸ€– Vim Codex

An AI plugin that does the work for you.

Repository's starts Issues License

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:

  1. Get and install pathogen.vim. You can skip this step if you already have it installed.

  2. cd ~/.vim/bundle

  3. git 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:

  1. cd ~/.vim/bundle/vim_codex

  2. git pull

With Vundle

Use the :BundleUpdate command provided by Vundle, for example invoking Vim like this::

% vim +BundleUpdate

Traffic Statistics

More Repositories

1

zsh_codex

This is a ZSH plugin that enables you to use OpenAI's Codex AI in the command line.
Python
1,252
star
2

codex-readme

Revolutionize your project documentation with the Codex-README generator, utilizing OpenAI's Codex for intelligent README creation.
Python
391
star
3

TecoGAN-Docker

This is a fork of the TecoGAN project (https://github.com/thunil/TecoGAN) that adds support for docker.
Python
97
star
4

fix

Boost your command line with AI-powered error resolution using OpenAI's Codex. Enjoy a smoother workflow with Fix!
Python
88
star
5

codex.fish

Supercharge your command line with OpenAI Codex integration. Get AI-powered coding assistance right in your fish shell.
Python
70
star
6

chatgpt_commit_message_hook

Enhance your git workflow using AI-generated commit messages from ChatGPT. Seamless integration for a well-documented commit log.
Python
67
star
7

dalle_flow_streamlit

Python
28
star
8

gpt_minus_one

Stealth Mode for ChatGPT - Keep your AI-generated text under the radar with our obfuscation tool designed for ChatGPT.
Python
17
star
9

github_stats

Python
9
star
10

timew_distribution

This plugin plots the time you spent on a tag as a histogram.
Python
8
star
11

github_fork_info

Python
6
star
12

ai_data_analyser

Analyse tabular data using OpenAI Codex
Python
6
star
13

carla_rl_weights

This repository contains checkpoint-files for the Sentdex/Carla-RL repository.
5
star
14

dotfiles

Contains my configuration files
Shell
4
star
15

point_e_streamlit

Python
3
star
16

meta_neural_networks

Python
2
star
17

scripts

Shell
2
star
18

chat_gpt_coder

Python
2
star
19

commonroad-docker

Dockerfile
2
star
20

tum_ai_bot

Python
2
star
21

Intrinsic-Image-Popularity

Shell
1
star
22

mnist_codex

Python
1
star
23

fakebob_offsets

Python
1
star
24

ipython_codex

1
star
25

set_random_wallpaper_reddit

Shell
1
star
26

TecoGAN_to_low_res

Python
1
star
27

next_js_test

1
star
28

trending_custom

Python
1
star
29

commonroad_batch_processing

Jupyter Notebook
1
star
30

ai_photo_rater

Python
1
star
31

taskwarrior-auto-tag-hook

This hook script allows to automatically add tags to a task.
Python
1
star
32

application_dashboard

Python
1
star