Communitygithub.com

NeverSight/learn-skills.dev

Vim 按鍵綁定、動作、文字物件與操作器的完整指南,用於提昇文字編輯效率。適用於使用者查詢「vim 指令」、「vim 動作」、「文字物件」、「vim 按鍵綁定」、「vim 小抄」、「學習 vim」、「VS Code 中的 vim」或任何 Vim 編輯相關任務時使用。

learn-skills.dev 是什麼?

這是一個專門為 AI 代理(如 Claude Code、Cursor、Codex 等)設計的 Vim 技能,提供了完整的 Vim 動作、操作器、文字物件與編輯指令參考。技能涵蓋基本與進階的導航方式,包括字元移動、字詞跳躍、行定位、搜尋、滾動,並深入解說操作器(d、c、y 等)與動作的組合使用模式。同時包含插入模式、視覺模式、暫存器、巨集與標記的完整教學,以及常用的檔案與編輯指令。此技能讓 AI 代理能準確回應關於 Vim 編輯的查詢,並提供可直接套用的指令範例與用法說明,有效加速開發者學習與應用 Vim。支援在任何整合 Vim 模擬或擴充的環境中使用,例如 VS Code、終端機編輯器或現代 IDE。

相容平台~Claude Code~Codex CLI✓Cursor
npx skills add https://github.com/NeverSight/learn-skills.dev/tree/HEAD/data/skills-md/1mangesh1/dev-skills-collection/vim-motions

在你喜歡的 AI 中提問

開啟一個已預先載入此 Agent Skill 的新對話。

說明文件

Vim 動作

動作、操作器、文字物件,提升編輯效率。

模式

一般模式     ESC 或 Ctrl-[    導覽與操作
插入模式     i, a, o 等       輸入文字
視覺模式     v, V, Ctrl-v     選取文字
命令列模式   :                執行指令

基本動作

字元/行

h j k l       左、下、上、右
0             行首
^             第一個非空白字元
$             行尾
g_            最後一個非空白字元

字詞

w             下一個字詞開頭
W             下一個 WORD 開頭(以空白分隔)
b             前一個字詞開頭
B             前一個 WORD 開頭
e             下一個字詞結尾
E             下一個 WORD 結尾
ge            前一個字詞結尾

行導覽

gg            第一行
G             最後一行
5G            跳至第 5 行
:42           跳至第 42 行
H             畫面頂端
M             畫面中間
L             畫面底部

搜尋

f{字元}       向前搜尋字元(同一行內)
F{字元}       向後搜尋字元
t{字元}       向前直到字元前
T{字元}       向後直到字元前
;             重複上一次 f/F/t/T
,             反向重複上一次 f/F/t/T
/{模式}       向前搜尋
?{模式}       向後搜尋
n             下一個相符
N             上一個相符
*             搜尋游標下的字詞
#             向後搜尋游標下的字詞

捲動

Ctrl-d        向下捲動半頁
Ctrl-u        向上捲動半頁
Ctrl-f        向下捲動一頁
Ctrl-b        向上捲動一頁
zz            游標所在行置中
zt            游標所在行置頂
zb            游標所在行置底

操作器

d             刪除
c             變更(刪除 + 插入模式)
y             複製
>             向右縮排
<             向左縮排
=             自動縮排
gu            轉小寫
gU            轉大寫
g~            切換大小寫

操作器 + 動作 = 指令

dw            刪除字詞
d$            刪除至行尾
d0            刪除至行首
dG            刪除至檔案結尾
dgg           刪除至檔案開頭
d3j           向下刪除 3 行

cw            變更字詞
ci"           變更引號內內容
ca)           變更括號內含括號內容

yy            複製整行
yw            複製字詞
y$            複製至行尾

>>            向右縮排行
3>>           向右縮排 3 行

文字物件

i = 內部(不包含邊界)
a = 周圍(包含邊界)

iw / aw       字詞
iW / aW       WORD
is / as       句子
ip / ap       段落
i" / a"       雙引號
i' / a'       單引號
i` / a`       反引號
i( / a(       小括號
i[ / a[       中括號
i{ / a{       大括號
i< / a<       角括號
it / at        HTML/XML 標籤

常見文字物件動作

diw           刪除內部字詞
ciw           變更內部字詞
yi"           複製引號內內容
da"           刪除含引號內容
ci(           變更括號內內容
dit           刪除 HTML 標籤內內容
vit           選取 HTML 標籤內內容
yap           複製段落
>ip           向右縮排段落

插入模式進入

i             游標前插入
I             行首插入
a             游標後插入
A             行尾插入
o             下方新增行
O             上方新增行
s             刪除字元並插入
S             刪除整行並插入
C             刪除至行尾並插入

視覺模式

v             字元視覺模式
V             行視覺模式
Ctrl-v        區塊(欄)視覺模式

# 在視覺模式中:
o             跳到選取區另一端
gv           重新選取上一次選取區

# 區塊視覺操作
Ctrl-v → 選取 → I → 輸入 → ESC    在所有行插入
Ctrl-v → 選取 → A → 輸入 → ESC    在所有行附加
Ctrl-v → 選取 → c → 輸入 → ESC    變更所有行
Ctrl-v → 選取 → d                  刪除欄位

編輯指令

x             刪除字元
X             刪除前一個字元
dd            刪除行
D             刪除至行尾
cc            變更行
C             變更至行尾
J             合併行
u             復原
Ctrl-r        重做
.             重複上一次指令
~             切換字元大小寫

暫存器

"ay           複製到暫存器 'a'(小寫 a)
"ap           貼上暫存器 'a' 的內容
"+y           複製到系統剪貼簿
"+p           從系統剪貼簿貼上
"0p           貼上上次複製的內容(非刪除)
:registers    顯示所有暫存器

巨集

qa            開始錄製巨集 'a'
q             停止錄製
@a            播放巨集 'a'
@@            重播上一個巨集
5@a           播放巨集 'a' 5 次

標記

ma            設定標記 'a'
'a            跳至標記 'a'(行)
`a            跳至標記 'a'(精確位置)
''            跳回上次位置
`.            跳至上一次編輯位置

必備指令

:w            儲存
:q            退出
:wq           儲存並退出
:q!           強制退出不儲存
:e 檔案       開啟檔案
:%s/舊/新/g   全部取代
:s/舊/新/g    取代當前行
:noh          清除搜尋反白

參考資料

快速參考卡片請見:references/cheatsheet.md

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

NeverSight/learn-skills.dev

Use when generating or modifying Remotion video code, creating demo videos, or working with the demo-video/ directory

NeverSight/learn-skills.dev

Create AI avatar and talking head videos via inference.sh CLI. Recommended: P-Video-Avatar (fastest, cheapest, built-in TTS). Also: OmniHuman, Fabric, PixVerse. Audio: Inworld TTS-2 (100+ languages, emotion steering for characters), ElevenLabs, Kokoro. Capabilities: audio-driven avatars, text-to-avatar, lipsync videos, talking head generation, virtual presenters, UGC content. Use for: AI presenters, explainer videos, virtual influencers, dubbing, marketing videos, UGC ads, gaming avatars, NPC dialogue. Triggers: ai avatar, talking head, lipsync, avatar video, virtual presenter, ai spokesperson, audio driven video, heygen alternative, synthesia alternative, talking avatar, lip sync, video avatar, ai presenter, digital human, ugc, ugc video, ugc ad, avatar ugc

NeverSight/learn-skills.dev

Create AI marketing videos for ads, promos, product launches, and brand content. Models: Veo, Seedance, Wan, FLUX for visuals, Kokoro for voiceover. Types: product demos, testimonials, explainers, social ads, brand videos. Use for: Facebook ads, YouTube ads, product launches, brand awareness. Triggers: marketing video, ad video, promo video, commercial, brand video, product video, explainer video, ad creative, video ad, facebook ad video, youtube ad, instagram ad, tiktok ad, promotional video, launch video

NeverSight/learn-skills.dev

Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse

NeverSight/learn-skills.dev

ElevenLabs automatic dubbing - translate and dub audio/video into 29 languages while preserving speaker voice via inference.sh CLI. Capabilities: auto speaker detection, voice-preserving translation, video dubbing, audio localization. Use for: content localization, video translation, multilingual content, international distribution. Triggers: dubbing, dub video, translate audio, video translation, audio translation, localize content, elevenlabs dubbing, eleven labs dub, multilingual dub, voice translation, auto dub, language dub, content localization

NeverSight/learn-skills.dev

Explainer video production guide: scripting, voiceover, visuals, and assembly. Covers script formulas, pacing rules, scene planning, and multi-tool pipelines. Use for: product demos, how-it-works videos, onboarding videos, social explainers. Triggers: explainer video, how to make explainer, product video, demo video, video production, video script, animated explainer, product demo video, tutorial video, onboarding video, walkthrough video, video pipeline

NeverSight/learn-skills.dev

Still-to-video conversion guide: model selection, motion prompting, and camera movement. Covers Wan 2.5 i2v, Seedance, Fabric, Grok Video with when to use each. Use for: animating images, creating video from stills, adding motion, product animations. Triggers: image to video, i2v, animate image, still to video, add motion to image, image animation, photo to video, animate still, wan i2v, image2video, bring image to life, animate photo, motion from image

NeverSight/learn-skills.dev

Generate talking head avatar videos with Pruna P-Video-Avatar via inference.sh CLI. Turn a portrait image into a realistic speaking video with built-in TTS. 18x faster and 6x cheaper than competitors. Models: P-Video-Avatar, P-Image (for portrait generation). Capabilities: text-to-avatar, audio-driven avatars, 30 voices, 10 languages, 720p/1080p, built-in TTS, dynamic backgrounds, full-body control. Use for: AI presenters, product demos, explainer videos, virtual influencers, marketing, education, multilingual content, UGC, gaming avatars. Triggers: avatar video, talking head, ai avatar, p-video-avatar, pruna avatar, video avatar, ai presenter, digital human, virtual presenter, lipsync, talking avatar, ai spokesperson, heygen alternative, synthesia alternative, veed alternative, fabric alternative, omnihuman alternative

NeverSight/learn-skills.dev

Generate videos with Pruna P-Video and WAN models via inference.sh CLI. Models: P-Video, WAN-T2V, WAN-I2V. Capabilities: text-to-video, image-to-video, audio support, 720p/1080p, fast inference. Pruna optimizes models for speed without quality loss. Triggers: pruna video, p-video, pruna ai video, fast video generation, optimized video, wan t2v, wan i2v, economic video generation, cheap video generation, pruna text to video, pruna image to video

NeverSight/learn-skills.dev

Render videos from React/Remotion component code via inference.sh. Pass TSX code, get MP4. Supports all Remotion APIs: useCurrentFrame, useVideoConfig, spring, interpolate, AbsoluteFill, Sequence. Configurable resolution, FPS, duration, codec. Use for: programmatic video generation, animated graphics, motion design, data-driven videos, React animations to video. Triggers: remotion, render video from code, tsx to video, react video, programmatic video, remotion render, code to video, animated video, motion graphics code, react animation video

NeverSight/learn-skills.dev

Video ad creation with exact platform-specific specs for TikTok, Instagram, YouTube, Facebook, LinkedIn. Covers dimensions, duration limits, AIDA framework, and caption requirements. Use for: video ads, social media ads, paid media creative, video marketing, ad production. Triggers: video ad, social media ad, tiktok ad, instagram ad, youtube ad, facebook ad, linkedin ad, video creative, ad specs, paid media, video marketing, ad production, reels ad, stories ad, pre roll, bumper ad

NeverSight/learn-skills.dev

Best practices and techniques for writing effective AI video generation prompts. Covers: Veo, Seedance, Wan, Grok, Kling, Runway, Pika, Sora prompting strategies. Learn: shot types, camera movements, lighting, pacing, style keywords, negative prompts. Use for: improving video quality, getting consistent results, professional video prompts. Triggers: video prompt, how to prompt video, veo prompts, video generation tips, better ai video, video prompt engineering, video prompt guide, video prompt template, ai video tips, video prompt best practices, video prompt examples, cinematography prompts

NeverSight/learn-skills.dev

YouTube thumbnail design with specific dimensions, contrast rules, and mobile preview optimization. Covers safe zones, text placement, face expression psychology, and A/B testing. Use for: YouTube thumbnails, video cover images, click-through optimization. Triggers: youtube thumbnail, thumbnail design, video thumbnail, click through rate, ctr optimization, youtube cover, video cover image, thumbnail maker, thumbnail tips, youtube design, video preview image

NeverSight/learn-skills.dev

Landing page conversion optimization with layout rules, hero section design, and CTA psychology. Covers above-the-fold formula, social proof placement, mobile design, and F-pattern reading. Use for: startup landing pages, product pages, SaaS marketing, conversion optimization. Triggers: landing page, hero section, above the fold, conversion optimization, landing page design, cta button, hero image, landing page layout, saas landing page, product page design, conversion rate, landing page best practices

NeverSight/learn-skills.dev

Configure and use the hosted YouTube Data MCP end-to-end with minimal user input. Use when users want the agent to verify Node.js and `npx`, configure MCP server config (Windows/macOS, Cursor/Codex/OpenClaw/OpenCode), request API key at setup time, run post-install capability discovery (`tools/list` and `get_patch_notes`), and then strongly recommend helper skill and Python setup for full local document and spreadsheet workflows.

NeverSight/learn-skills.dev

Creates 120fps GPU-accelerated animations with Motion.dev (Framer Motion successor) for React, Next.js, Svelte, and Astro projects. Use when user requests animation, motion, scroll effects, parallax, hero animations, gestures, drag interactions, spring physics, whileHover effects, whileInView animations, animated UI, micro-interactions, page transitions, or layout animations. Generates production TypeScript/JSX code with accessibility (prefers-reduced-motion) and performance validation (≥60fps). Supports entrance animations, gesture interactions (hover/tap/drag), scroll-based reveals, and layout transitions using spring physics and natural timing. Do NOT use for CSS-only transitions (use native CSS), static sites without JavaScript, Vue animations (use motion-v variant instead), or SVG/Canvas complex animations (GSAP better suited).

NeverSight/learn-skills.dev

Static artifact craft skill for self-contained HTML/CSS/JS documents: docs, sheets, dashboards, explainers, slides, tools, and landing pages. Use when the user asks for a durable, openable, shareable web deliverable they'll keep or hand off — a report, a dashboard, a slide deck, a data table, a page. Local folder first, temporary public link via tunnel (localhost.run), optional durable publish to Surge, GitHub Pages, or Cloudflare. Not for quick look renders, inline snippets, or throwaway scratch. Not for SPA frameworks, backend APIs, database apps, or production product UI.

NeverSight/learn-skills.dev

FFmpeg commands for video/audio conversion, trimming, compression, and processing. Use when user mentions "ffmpeg", "convert video", "compress video", "extract audio", "trim video", "gif from video", "video codec", "transcode", "screen recording", "merge videos", "video to mp4", "reduce file size", or any media processing task.

NeverSight/learn-skills.dev

Download YouTube videos, extract/proofread/translate subtitles, and render them onto video. Use whenever the user asks to download a YouTube video with subtitles, translate video subtitles to Chinese, add subtitles/burn subtitles to a video, or do ASR transcription on video audio. Covers the full pipeline: video download → subtitle extraction → proofreading → translation → SRT generation → subtitle rendering. Also use for "下载视频加字幕", "视频翻译字幕", "把字幕烧录到视频中". For pure subtitle file creation without rendering (just SRT output), this skill handles that too — stop before Phase 5.

NeverSight/learn-skills.dev

Grok Build ONLY. Turn a 2D character still into smooth animation sprites via image_gen/image_edit base → image_to_video (6s/10s run-in-place) → ffmpeg frames → magenta chroma-key → dense sampled sprites (strip/grid/GIF). Use when the user wants video-to-sprite, motion capture from generated video, smoother run/walk cycles from dense frames, or runs /video2dsprite. Do NOT use on Codex/Claude — only Grok Build has image_to_video. Prefer generate2dsprite for crisp pixel sheets without video.

相關技能