In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the Android text editing tool how to use the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this Android text editing tool how to use the article will have a harvest, let's take a look.
Based on the IMX6ULL Development Board-text Editing tool
Text editing is the most commonly used tool. We can use notepad or other more powerful text in windows system.
Do not compile software, such as UltraEdit, etc. Ubuntu comes with a text editor: Gedit by default, and the modified software is an editor of a window interface.
The device. Compared with the Gedit text editor, we use the most command-line editor: vim. Vim editors are all on the terminal.
Operating in mode, the default Ubuntu system does not have vim installed. We can manually install the vim editor through the apt-get command, first of all
We type the "sudo apt-get install vim" command on the terminal, and then enter. During the installation process, we will be prompted whether to continue the installation. I
We enter y to continue with the installation, as shown in the following figure:
Vim has three working modes: command mode, insert mode, and bottom line mode. Different functions can be accomplished by switching between different modes.
Take editing a document as an example to learn how to use vim. First open the terminal and enter the command "sudo vi myfile", as shown in the following figure:
Vim opens the myfile file first in command line mode, so we can't enter text on the terminal, so we need to switch to insert
Enter the mode, we can enter any of the following letters at the terminal to enter the insert mode:
A / / after the character of the current cursor, switch to insert mode
I / / in front of the current cursor character, switch to insert mode
O / / create a new line below the line of the current cursor and switch to insert mode
O / / create a new line above the line of the current cursor and switch to insert mode
S / / Delete the character where the cursor is located
R / / replace characters at the cursor
What we use most is to enter the letter "a". When we press the "a" button on the keyboard in the picture above, we can see that there will be a plug in the lower left corner of the terminal.
The prompt of "enter" indicates that it is currently in insert mode, as shown in the following figure:
Entering insert mode, we can enter text, as shown in the following figure:
After the text input is complete, we need to save the text. First press the "ESC" button on the keyboard to exit the current insert mode and return to the command line
Mode, as shown in the following figure:
In the image above, we can see that the "insert" character in the lower left corner is gone, indicating that we are now in command line mode, and then I
Enter the ":" button (Shift+; combination button) at the terminal to enter the bottom line mode, and we will see a ":" colon in the lower left corner of the terminal.
Symbol, as shown in the following figure:
In the bottom line mode of the figure above, the following commands are commonly used:
Q exit
W Save changes
Q! Exit without saving changes
To save the text entered above, type "wq", then press enter to save the document and exit vim, as shown in the following figure:
After exiting the vim text editor, we can use the cat command to view the contents of the myfile file we just created, as shown in the following figure:
As you can see from the figure above, the content in the myfile file is what we entered with the vim editor, so we have fully used vim
The text editor realizes the creation, editing and saving of the document.
Sometimes we use the keyword search function in the process of editing the file, and the vim editor also provides a very convenient keyword search function.
Yes, let's learn the keyword lookup function of vim. First type "vim myfile" to open the myfile file you created earlier, as follows
The figure shows:
In the image above, we open the file myfile, when vim is in command line mode, and we enter the "/" character at the terminal to make vim enter the backplane mode.
Style, as shown in the following figure:
In the figure above, we enter the keywords we want to query when we enter the bottom-line mode, such as our query "topeet" keyword, as shown in the following figure
Show:
After typing the search keyword "topeet", we press the enter button and vim will go to the file to find the first location where the keyword appears.
When searched, the cursor locates to the location of the keyword, as shown in the following figure:
This is the end of the article on "how to use Android text Editing tools". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how to use Android text editing tools". If you want to learn more, you are welcome to follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.