





















ci" (Change Inside Quotes): Change text within quotesda{ (Delete Around Braces): Delete including surrounding bracesyiw (Yank Inner Word): Copy current wordvip (Visual Inner Paragraph): Select entire paragraphgqip (Format Inner Paragraph): Format paragraph text* and #: Search for word under cursor (forward/backward)%: Jump between matching brackets/parenthesesgd: Go to definition of variable under cursorCtrl-o / Ctrl-i: Navigate back/forward through jump historym{a-z}: Set marks, '{a-z} to jump to marks=: Auto-indent selected text or motiongU / gu: Convert to uppercase/lowercase> / <: Indent/unindent selected text.: Repeat last command (extremely powerful)q{a-z} / @{a-z}: Record and replay macros/ and ?: Forward and backward searchn / N: Next/previous search result:s/old/new/g: Substitute in current line:%s/old/new/gc: Global search and replace with confirmation:g/pattern/command: Execute command on lines matching pattern:ls: List all buffersCtrl-w commands: Window management (split, resize, navigate):b{number} or :b{name}: Switch to specific bufferCtrl-^: Switch between current and previous bufferq:: Open command history in editable bufferCtrl-r: Insert register contents in command mode!!: Repeat last shell command:r !command: Insert output of shell commandgv: Reselect last visual selectiono: Move to other end of visual selectionCtrl-v: Column/block visual modeI / A in visual block: Insert at beginning/end of each lineVim’s power comes not from memorizing hundreds of shortcuts, but from understanding its compositional nature and developing muscle memory for the most common operations in your specific workflow.
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。