Detailed explanation of Linux text editor Vim

Detailed explanation of Linux text editor Vim

Vim is a powerful full-screen text editor and the most commonly used text editor on Linux/UNIX. Its function is to create, edit and display text files. Vim has no menus, only commands. (Used when editing some configuration files and writing some simple scripts)

Vim's three working modes: command mode, insert mode, and edit mode
vi [file name] –> Enter command mode, enter iao to enter insert mode Command mode: enter wq to exit; enter iao to enter insert mode; enter: Enter edit mode Insert mode: ESC to exit command mode Edit mode: Enter to end the command

Insert command:

Positioning command:


Delete command:


Copy and Cut commands:


Replace and undo commands:


Search and search-replace commands:


Save and exit commands:

Vim Tips

Import command execution result: r! Command definition shortcut key: map Shortcut key trigger command example: map ^PI#
:map ^B 0x
Note: Ctrl+v, Ctrl+p produces ^P effect, or Ctrl+v+p

The above is a detailed explanation and integration of the Linux text editor Vim introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • Linux Vim Practical Commands Explained
  • How to operate vi and vim editors in Linux
  • Introduction to vim plugin installation under Linux system

<<:  How to implement the singleton pattern in Javascript

>>:  Mysql optimization Zabbix partition optimization

Recommend

Things to note when designing web pages for small-screen mobile devices

The reason is that this type of web page originate...

Multiple solutions for cross-domain reasons in web development

Table of contents Cross-domain reasons JSONP Ngin...

Linux/Mac MySQL forgotten password command line method to change the password

All prerequisites require root permissions 1. End...

js to realize the production method of carousel

This article shares the specific code for js to r...

Do you know how to use Vue to take screenshots of web pages?

Table of contents 1. Install html2Canvas 2. Intro...

In-depth understanding of Vue transition and animation

1. When inserting, updating, or removing DOM elem...

Install CentOS 7 on VMware14 Graphic Tutorial

Introduction to CentOS CentOS is an enterprise-cl...

Font Treasure House 50 exquisite free English font resources Part 1

Designers have their own font library, which allo...

Docker deployment and installation steps for Jenkins

First, we need a server with Docker installed. (I...

Docker+gitlab+jenkins builds automated deployment from scratch

Table of contents Preface: 1. Install Docker 2. I...

How to connect to MySQL visualization tool Navicat

After installing Navicat The following error may ...

How to set an alias for a custom path in Vue

How to configure custom path aliases in Vue In ou...

CentOS 6 uses Docker to deploy Zookeeper operation example

This article describes how to use docker to deplo...