vim

Reference the Neovim Lua API for functions, types, and Vimscript equivalents.

232|4|Updated Jan 22, 2026
One-click install
npx skills add https://github.com/ThePrimeagen/skills --skill vim-theprimeagen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vim
Source: https://github.com/ThePrimeagen/skills/tree/main/skills/vim
Command: npx skills add https://github.com/ThePrimeagen/skills --skill vim-theprimeagen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive reference for Neovim's Lua API, enabling developers to write powerful plugins and configurations.

Core Features & Use Cases

  • API Reference: Detailed documentation for vim.api.*, vim.fn.*, and other Lua modules.
  • Configuration Assistance: Helps users understand and utilize Neovim's extensive Lua functionalities for customization.
  • Use Case: A user wants to create a custom Neovim command to automatically format code. They can use this Skill to look up the relevant vim.api functions for buffer manipulation and command execution.

Quick Start

Use the vim skill to find the Lua API function for setting the current buffer's name.

Frequently Asked Questions about vim

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the Neovim Lua API to create custom editor commands?

Use the Neovim Lua API to call vim.api functions for buffer manipulation and command execution. This Skill provides detailed reference documentation for exposed Lua modules to help you create and execute custom editor commands.

What is the difference between vim.api and vim.fn in Neovim Lua scripting?

In Neovim Lua scripting, vim.api exposes core C API functions while vim.fn calls Vimscript functions. This Skill provides detailed reference documentation for both modules to facilitate advanced editor scripting and plugin development.

Can I use Lua to configure Neovim instead of Vimscript?

Yes, you can configure Neovim using Lua by calling Neovim's extensive Lua functionalities and API modules. This Skill provides reference documentation to help you understand and utilize Lua for custom editor configurations.

How do I find the Vimscript equivalent of a Neovim Lua function?

Find Vimscript equivalents for Neovim Lua functions by consulting the API reference documentation. This Skill encompasses all exposed Lua modules and provides their respective Vimscript equivalents for programmatic editor control.

Does this Neovim Lua API reference cover plugin development?

Yes, this Neovim Lua API reference facilitates plugin development by documenting vim.api, vim.fn, and other exposed Lua modules. It provides the necessary programmatic control functionalities required to build advanced Neovim plugins.