sponsor Vim development Vim logo Vim Book Ad

modelname : Parse AI model names like gpt-4.1-mini into vendor, family and version

 script karma  Rating 0/0, Downloaded by 13  Comments, bugs, improvements  Vim wiki

created by
Nour Abouskhroun
 
script type
utility
 
description
Reads AI model IDs and display names (gpt-4.1-mini, claude-sonnet-4-5, Gemini 3.1 Pro Preview) and splits them into vendor, family, version, size, date and tags.

:ModelName parses the name under the cursor, or one you type, and echoes a one line summary.
:ModelNameLatest {family} finds the newest model of that family in the current buffer.
Functions for scripts: modelname#parse(), modelname#compare(), modelname#same_family(), modelname#latest().

Pure Vimscript with no dependencies. Works in Vim 8.0+ and Neovim. No default key mappings.

Model list it was tested against: https://whizi.io/models/
Go original: https://pkg.go.dev/github.com/BoNour/modelname
 
install details
Unzip into ~/.vim (vimfiles on Windows, ~/.config/nvim for Neovim) and run :helptags ~/.vim/doc
Or put the unzipped folder under any plugin manager or a pack/*/start directory.
See :help modelname for commands and functions.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
modelname-vim-0.1.zip 0.1 2026-10-08 8.0 Nour Abouskhroun Initial upload
ip used for rating: 216.73.216.251

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github