💾 Archived View for szczezuja.space › cheatsheet › vim.gmi captured on 2024-07-09 at 00:05:35. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2022-06-04)

-=-=-=-=-=-=-

Personal cheat sheet

vim

https://www.vim.org

Visualization 1

+------------------------------------------------------------------------------+
|                                                                              |
|                       +----------------------+           +-----------------+ |
| +-----------+         |     / - search       |           |.................| |
| |           |         | n / N - next / prev. |           |.i - insert mode.| |
| | :w - save <---+     +---------^------------+       +--->.a - append mode.| |
| |           |   |               |                    |   |.<any character>.| |
| +-----------+   +----------+    |    +---------------+   |.................| |
|                            |    |    |                   +-----------------+ |
| +-------------+          +-+----+----v-+                                     |
| |             |          |.............|                 +-------------+     |
| |  u - undo   |          |.normal mode.<----------------->.............|     |
| | dd - delete <----------+.ESC.........|                 |.S-v, C-v....|     |
| | yy - copy   |          |.............+-----+           |.visual mode.|     |
| |  p - paste  |          +-+--+--+--+--+  +--v---------+ |.............|     |
| |             |            |  |  |  |     |Keyword com-| +------+------+     |
| +-------------+            |  |  |  |     |pletion C-n |        |            |
|                            |  |  |  |     +------------+ +------v---------+  |
| +--------------------+     |  |  |  +---------+          |                |  |
| |                    |     |  |  |            |          | :sort - sort   |  |
| | arrow - move       <-----+  |  +---------+  |          | selected lines |  |
| | w / b - word       |        |            |  +--------+ +----------------+  | 
| | } / { - paragraph  |        |            |           |                     |
| |     ^ - start line |   +----v-------+   +v-----+   +-v-------------+       |
| |     $ - end line   |   |            |   |      |   |               |       |
| |    gg - start file |   | :set spell |   | quit |   | run shell cmd |       |
| |     G - end file   |   | z=         |   | :q   |   | :r date       |       |
| |                    |   |            |   |      |   |               |       |
| +--------------------+   +------------+   +------+   +---------------+       |
|                                                                              |
+------------------------------------------------------------------------------+

--

szczezuja.space CC BY-SA