In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you what are the practical functions of the Xedit text editor, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Xedit, part of the X11 graphics server, is not pretty, but it has enough hidden features to make it a serious text editor.
The X11 graphics server, released by X.org, has some symbolic applications that show how to program with the tools it provides. These apps range from TWM desktops to stupid but hypnotic Xeyes. It also includes a text editor called Xedit, which is a seemingly simple application, but has enough hidden features to make it a serious editor.
Install Xedit
If you are using Linux or BSD, you can install Xedit from your distribution repository or ports tree. It sometimes appears in a package called X11-apps, bundled with other X11 applications.
On macOS, you can install XQuartz, which provides Xedit, Xeyes, and some other Mini Program (and an X11 graphics server).
Start Xedit
If it is listed in your application menu, you can launch Xedit from it. Although it is definitely a GUI application, some distributions treat it as a command rather than a GUI application, so it may not be listed in the application menu. At this point, you can start Xedit from the terminal. If you type xedit & to start the application, it will launch an empty Xedit editor that can be typed at any time. If you enter an existing file name while entering the startup command, Xedit will load the file into the buffer when it starts.
$xedit example.txt &
Xedit
Load Fil
In an open Xedit instance, you can load the file by entering the path to the file in the top text input box. Click the Load button (on the left side of the text input box) to read the file into the Xedit window.
Load Xedit
You can open multiple files at the same time. When a file is loaded, it will gain focus and appear in your main Xedit buffer (the large text input box in the main window), and switch any existing files to a hidden buffer.
You can use key combinations to switch between buffers, which is familiar to Emacs users, but confused to other users. First, press Ctrl+X. Let go and press Ctrl+B.
Combined key
It feels strange at first to perform an operation that requires two keyboard shortcuts in a row, but after a while, you'll get used to it. In fact, as a regular user of Emacs, I find compound key combinations very rhythmic. I was surprised and pleased to find that some of my favorite keyboard shortcuts also work in Xedit.
It turns out that Xedit borrowed keyboard shortcuts from several sources of inspiration. If you are an Emacs user, you will find that the most common combinations work in Xedit. For example, Cmurx Cmurf (that is, Ctrl+F after Ctrl+X) can go back to the text input box at the top to load the file, while Cmurx Cmurs (Ctrl+S after Ctrl+X) can save the file. Surprisingly, Cmurx 3 can even split the window vertically, while Cmurx 2 can split horizontally, and Cmurx 0 or Cmurx 1 can remove the segmentation.
Edit commands that are familiar to Emacs or Bash users also apply:
Ctrl+A moves to the beginning of the line.
Ctrl+E moves to the end of the line.
Alt+B moves back one word.
Ctrl+B moves backward one character.
Ctrl+F moves forward one character.
Alt+F moves forward one word.
`Ctrl+D deletes the next character.
There are more, which are listed on the Xedit manual page.
Use line editing mode
Xedit also contains a line editor similar to ex, which should be familiar to Vi and ed and even sed users. To enter line editing mode, press Esc. This will put you at the top of the text input box, but in command mode. The syntax used for editing commands is: the line number is followed by a command and parameter.
For example, you have this text file:
Ed is the standard Unix text editor.This is line number two.
You decide to change the ed on line 1 to Xedit. In Xedit, move to line 1, press Esc, and enter., s/ed/Xedit/.
Xedit is the standard Unix text editor.This is line number two.
Instead of moving the cursor to the next line, you can change two to the second. Press Esc, and then type 2jiazard twoplash the second/.
These are all the contents of the article "what are the practical functions of the Xedit text Editor?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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.