sharegpt-vim-plugin-comp.mp4
This Vim plugin provides a UI for editing JSONL (JSON Lines) files, specifically tailored for ShareGPT conversations. It includes features like navigation through JSONL entries, custom syntax highlighting, and in-place editing of JSONL data.
- Navigation: Move through JSONL entries with Up/Down arrow keys.
- Editing: Edit JSONL entries directly in the UI buffer.
- Syntax Highlighting: Custom syntax highlighting for different parts of the conversation (SYSTEM, HUMAN, GPT).
- Saving: Save changes back to the original JSONL file with :W
- Copy the plugin files to your Vim plugin directory.
- Open a
.jsonl
file and the plugin will load automatically.
- Use the
Down
arrow key to move to the next JSONL entry. - Use the
Up
arrow key to move to the previous JSONL entry. - Edit the content in the Vim buffer.
- Press
:W
to save changes to the current JSONL entry.
- Vim with JSON support (for
json_decode
andjson_encode
functions).
It's far from perfect as I am not exactly a "vim script" expert, use at your own risk and discretion, and consider testing in a controlled environment before applying it to critical tasks. If you find it useful and improved it, please feel free to submit PR