vim

📁 g1joshi/agent-skills 📅 3 days ago
1
总安装量
1
周安装量
#46950
全站排名
安装命令
npx skills add https://github.com/g1joshi/agent-skills --skill vim

Agent 安装分布

mcpjam 1
claude-code 1
replit 1
junie 1
zencoder 1

Skill 文档

Vim

Vim is the universal text editor installed on every UNIX system. While Neovim innovates, Vim focuses on backward compatibility and stability.

When to Use

  • SSH / Servers: It is always there. vi usually aliases to vim.
  • Stability: Scripts written in 2005 still work.
  • Resource Constraints: Runs on embedded routers.

Core Concepts

Modes

  • Normal: Navigation (hjkl).
  • Insert: Typing (i, a).
  • Visual: Selection (v).
  • Command: Ex commands (:w, :q).

Composability

Operator + Motion = Action. d (delete) + w (word) = dw. c (change) + i (inside) + " (quote) = ci".

Best Practices (2025)

Do:

  • Learn the Basics: vimtutor is mandatory for every developer.
  • Use .vimrc: Keep a minimal config for servers (line numbers, syntax on).
  • Use Neovim for IDE: For daily coding, Neovim is preferred. Use Vim for quick edits.

Don’t:

  • Don’t use arrow keys: Force yourself to use hjkl.

References