-
-
Save shotgundebugging/a4eae1c832575dd983cc4dbe8e20679d to your computer and use it in GitHub Desktop.
Revisions
-
David Heinemeier Hansson created this gist
Sep 15, 2024 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,54 @@ # Vim Manipulation Cheat Sheet ## Action | Key | Result | | --- | ------ | | `v` | select | | `y` | copy (yank) | | `c` | change | | `d` | delete | ## Scope | Key | Result | | --- | ------ | | `a` | around | | `i` | inside | ## Object | Key | Result | | --- | ------ | | `w` | word | | `p` | paragraph | | `s` | sentence | | `q` | quotes | | `b` | brackets | | `o` | block | | `t` | tag | | `i` | indention level | | `W` | white space | ## Examples | Command | Result | | --- | ------ | | `vaq` | select around current word | | `yiW` | copy between last and next white space | | `ciq` | change inside quotes | | `dii` | delete everything at current indention | ## Extra | Command | Result | | --- | ------ | | `f<char>` | find next character, stop on it | | `t<char>` | find next character, stop before it | | `F<char>` | find prev character, stop on it | | `T<char>` | find prev character, stop before it | | Command | Result | | --- | ------ | | `ct"` | change from cursor to next " (leaving ") | | `df\|` | delete from cursor to next \| (including \|) |