Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient: : QX starts recording macro and registers the result in register X Q Exit Record mode @x playing macro commands recorded in the X register To explain a little bit, when entering in normal mode: After QX, all your edits to the te
from the position of the cursor to the end of a word
Try different ways to get into the insert mode from normal mode, add in front of the last line Shiyanlou www. , Notice that each time you go back to normal mode to switch to insert mode in different waysAccording to the first week of experiments in the game, Vim adventure, slightly adapted to the HJKL movement, or very interesting.
Command
Description
The most common use of vim to edit a single file, see the source code. is to write a few K line of code when there are no other plug-ins, just set a highlight and some of the properties of their own. The advantage is that it can be used immediately on any new machine.On the internet, a lot of "vim command Collection", "the vim to make an IDE" and other articles,
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI,We often use different variants of software on different machines. Among them, VIM is relatively easy to use and widely used. Vim is short for VI improved, indicating better VI.This article describes some useful and commonly used c
Vim basic functions, modes, and commands 1. vim functions 1. run vim to start the vim editor. 2. generally, we use the vim + target file path to use vim3. if the target file exists, vim
Common Vim commands and usage 1 switch insert mode: insert a (uppercase) after A (lowercase) cursor in command mode) insert I at the end of the row where the cursor is located (common commands and usage of lowercase Vim 1 switch insert mode: insert a (uppercase) after the cursor in command mode) insert I (lower case) a
Recently work in need to change files on the Linux server, suffering from the various commands of VIM is not familiar with, today we summarize and familiar with a variety of VIM commands, so as to improve work efficiency. Late Continuous updateVim Editor Personal settings
First copy the
If you've just started using vim and run vimtutor a few times, will it feel good vim is too clumsy to understand why it's so crowded, and even Visual Studio provides vim plugins. That's because you're still not getting rid of the mouse dependency, and the powerful command for VIM is that you still have the most fur.If
Vi (vim) is a commonly used editor on Linux. By default, vi (vim) is installed in many Linux distributions ). There are many vi (vim) commands, but if they are used flexibly, the efficiency will be greatly improved. Vi is short for "visual interface", and vim is vi IMproved
Advanced some of the editor, will contain the macro function, Vim is certainly not missing, the use of macros in Vim is very convenient:: QX starts recording macro and registers the result in register XQ Exit Record mode@x playing macro commands recorded in the X registerTo explain a little bit, when entering in normal mode: After QX, all your edits to the text w
the Server.xml file, modify the port: Wq exit and then back to the previous level directory again: Q exit. 2.vim Command Summary of some shortcut commands
Exit and save
: Wq
Exit and Force Save
: wq!
Force quit, do not save
: q!
Move the cursor to the last line of the file
Shinft+g
Move the cursor to the first line of
1. enter the vim editor mode: (when entering the vim editor, the default mode is the command mode) enter vi on the terminal: Enter the vim editor vifilename: Enter the vim editor, and create a new filename File, position the cursor to the first line of the file. when vi is working, it will be created in the current dir
The command is also called motion: Help!Filter commandsInformation Filtering (filter)!==>tell vim to performing a filter operation!5G, from the cursor down 5 lines to execute the filter program (tell the VIM to start filter under cursor and go down 5 lines):.,. +4!: 10,15!sort-I only executes between lines 10th and 15th of the file (sort between line ten to 15)!! (Filter the current line):., $!sort (sort fr
common commands and usage of the Vim editor in Linux ( note strictly case-sensitive and in Chinese and English ):The VIM editor has three modes : edit mode, input mode, and last line mode.Mode conversion:Edit Mode "Input mode:I: Before the character of the cursor, into the input mode (that is, after the end of the cursor before the character input); I: At the beg
Since 1970, VI and Vim have become one of the programmers ' favorite text editors. 5 years ago, I wrote a question called "100 vim commands that every programmer should know." This is an improved version of the previous article, I hope you will like it.Basis: E filenameOpen filename for edition : WSave file : QExit Vim
Preface
The Vim VI is a widely used text editor in Unix/Linux. Most machines have different types of VI, we often use different variant software on different machines, among which Vim is relatively easy to use and widely used. Vim is short for VI improved, which indicates better VI, commonly usedCommandIf you are proficient in using these
Supplement: about man, Common commands in see also and vim
1.When checking the/etc/issue file, use man issue to find that see also in manual contains the words motd (5), agetty (8), and mingetty (8. And the meaning of the issue (5) at the beginning of the document line.
Man is explained as follows:
1 Executable programs or shell commands -->Executable programs or
Vimm (vimsual) is a full-screen editor used in Linux/Unix OS.
Vimm is divided into two states: command status and edit status. In command status, the entered character system performs command processing. For example, Q indicates that the system exits, the editing status is used to edit text materials. When you enter vim, it first enters the command status. In the command status, press "I" (insert) or "A" (ADD) to enter the editing status. In the editi
A simple configuration1 Add configuration file. vimrcUnder directory/etc/, there is a file named VIMRC, which is a public vim configuration file in the system and is valid for all users. and in each userHome directory, you can create a private configuration file named: ". VIMRC".The following is an example of an ordinary user:set up in the user's home directory . vimrc fileor directly download the master to write a good move to their home directory ca
:
To connect two lines together:
Concatenate n rows together: The line of the cursor and the next n-1 line
Execute shell command: For example: View current time:
Read the results of the shell execution and place the result behind the cursor: For example: List files in directory:: R!ls
Simple Encrypted File:
Vim +n filename Opens the file filename and places the cursor at the beginning of the nth line
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
[email protected]
and provide relevant evidence. A staff member will contact you within 5 working days.