vim | Skill Performance & Reviews | TopRankSkills

TopRank Skills

Home / Skills / tools / vim

vim

maintained by khulnasoft

star 0 account_tree 4 verified_user MIT License
bolt View GitHub

name: vim description: Core Neovim navigation and editing skills

Neovim Core API Reference

This document covers the essential Neovim Lua APIs for automation and configuration.


vim.api

The main interface for calling Neovim's internal C functions.

-- Buffer operations
vim.api.nvim_get_current_buf()
vim.api.nvim_buf_get_lines(bufnr, start, end_, strict)
vim.api.nvim_buf_set_lines(bufnr, start, end_, strict, lines)

-- Window operations
vim.api.nvim_get_current_win()
vim.api.nvim_win_get_cursor(win)
vim.api.nvim_win_set_cursor(win, {row, col})

-- Keymaps & Commands
vim.api.nvim_set_keymap(mode, lhs, rhs, opts)
vim.api.nvim_create_user_command(name, command, opts)
vim.api.nvim_create_autocmd(event, opts)
vim.api.nvim_create_augroup(name, opts)

vim.fn

Access to legacy Vimscript functions.

vim.fn.expand("%:p")        -- Get current file absolute path
vim.fn.line(".")            -- Get current line number
vim.fn.stdpath("config")    -- Get config directory path
vim.fn.jobstart(cmd, opts)  -- Start an asynchronous job

khulnasoft Custom Utilities

Git Automation (<leader>gc)

Your configuration includes a custom dev_commit utility that:

  1. Runs git add .
  2. Commits with a timestamped message.
  3. Pushes to origin asynchronously.

Reloading (R)

Use the global R(module_name) function to reload Lua modules without restarting Neovim.

chat Comments (0)

chat_bubble_outline

No comments yet. Be the first to share your thoughts!

Skill Details

GitHub Stars 0
GitHub Forks 4
Created Mar 2026
Last Updated 3 months ago
tools tools ide plugins

Related Skills

writing-skills
chevron_right
codex
chevron_right
smart-illustrator
chevron_right
collaborating-with-codex
chevron_right
code-review-router
chevron_right

Build your own?

Join 12,000+ developers contributing to the Claude ecosystem.