💾 Archived View for szczezuja.flounder.online › cheatsheet › vim.gmi captured on 2023-04-26 at 13:30:37. Gemini links have been rewritten to link to archived content

View Raw

More Information

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

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