Home >System Tutorial >LINUX >Vim shortcut key list

Vim shortcut key list

WBOY
WBOYforward
2024-01-03 13:30:30860browse

Vim 快捷键一览表

The Vim editor is a command line-based tool that is an enhanced version of the legendary editor vi. Although there are many rich text editors with graphical interfaces, familiarity with Vim can be helpful to every Linux user - whether you are an experienced system administrator or a novice user who has just started using Raspberry Pi.

This lightweight editor is a very powerful tool. In the hands of an experienced user, it can do incredible things. In addition to regular text editing functions, it also supports some advanced features. For example, regular expression-based search and replacement, encoding conversion, and programming features such as syntax highlighting, code folding, etc.

There is a very important point to note when using Vim, that is, the function of the keys depends on the current "mode" of the editor. For example, when you enter the letters j in "Normal Mode", the cursor will move down one line. When you enter characters in "insert mode", it is just normal text entry.

Here is a cheat sheet to help you get the most out of Vim.

Basic operations

Vim 快捷键一览表

Arrow key

Vim 快捷键一览表

Browse documentation Vim 快捷键一览表 Insert text

Vim 快捷键一览表

Special Insertion

Vim 快捷键一览表

Delete text


Vim 快捷键一览表

Simple replacement text Vim 快捷键一览表
Undo/redo operations

Vim 快捷键一览表

Search and Replace
Vim 快捷键一览表
Select text

Vim 快捷键一览表

Change selected text

Vim 快捷键一览表

Save and exit

Vim 快捷键一览表

Isn’t this enough to satisfy you? Don’t worry, we’ve put together a downloadable cheat sheet just in case. Download Vim shortcut key cheat sheet


The above is the detailed content of Vim shortcut key list. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:linuxprobe.com. If there is any infringement, please contact admin@php.cn delete