About VIM
Vim is a powerful full-screen text editor, which is the most common text editor on Linux/unix, which is used to create, edit, and display text files.
Vim has no menu, only commands
Three modes of VIM: Command mode, insert mode, edit mode
lowercase letters i/a/o from command mode to insert mode
Return from Insert mode to command mode with ESC key
From command mode to edit mode (Find/Set/exit/save, etc.) with ":"
Returning from edit mode to command mode with a carriage return, indicating that the command ends with a return run
Import command execution result: R! Command example: R/etc/issue Import the contents of the file to the current cursor position; r!data Import the current time to the cursor position
Define shortcut keys: Map Shortcut Trigger command example: Map ^p i#<esc> (^p button Ctrl + V ctrl+p) map ^b 0x
Continuous line Comment: n1,n2s/^/#/g n1,n2s/^#//g n1,n2s/^/\/\//g
Replacement: AB mymail [email protected]
To retain VIM configuration for a long time: Edit the./vimrc file in the current user's host directory
Linux Text editor vim