Several commonly used text editors in Ubuntu

Source: Internet
Author: User
Tags delete key save file

the common console-based text editors have the following:

Emacs Comprehensive GNU Emacs Editing environment

The Nano is a text editor similar to the classic Pico, with a built-in pine mail program

vim An improved VI text editor

Note that not all text editors are based on the console, which means that they support terminal use. Some text editors are designed to provide a graphical interface with menu bars, buttons, progress bars, and so on. For example:

gedit A GUI text editor, ubuntu default installation

Kate A simple KDE text editor

Kedit Another simple KDE text editor


use of the nano-text editor

The Nano Editor is the simplest and easiest to use, and is basically installed by all Linux. So let's start by explaining it. To open a nano editor, use the following command:

Nano file.txt

The Nano Editor is very simple and you can easily use it without any extra knowledge. Here are some basic commands. (^ is control key controls)

The cursor moves the direction key (up/down/left/right), pageup/page down, or ^y and ^v.

Add character at cursor input

Delete the character delete key or the BACKSPACE key

Exit ^x (you will be prompted to save changes)

Help ^g

Nano The editor interface is as follows:



VI text editor usage

Basically every Linux/unix system is equipped with VI editor. Open a VI editor to use the following command:

VI file.txt

The VI Editor works with insert (edit) mode and browse (command) mode. When you first edit, you are in browse mode, and you can use arrows or other navigation keys to navigate through the text. When you start editing, type I, insert text, or type A to add text at the end. When you finish editing, type ESC to exit Insert/Add mode and go to browse (command) mode. When you type a command, first type a colon (:), followed by the command, such as the W command to edit the text, and then type Enter.

Although the VI editor supports very complex operations and has countless commands, one can complete the work with some simple commands, these basic VI commands mostly have:

Cursor movement h,j, K, L (up/down/left/right)

Delete character X

Delete line DD

Mode exit Esc,insert (or i)

Exit Editor Q

Force exit Do not save q!

Run shell command: SH (use Exit to return VI editor)

Save File: W

Text Lookup/

Use the VIM Tutor command to quickly learn the use of VI keyboard commands. This tutorial takes less than 30 minutes to teach users how to turn on and off editors, navigate files, insert delete text, find, replace, and insert operations.

VI (VIM) detailed use of commands: http://jingyan.baidu.com/article/9f63fb91c58387c8400f0eef.html emacs Text editor usage

Richard M. Stallman 's GNU Emacs text Editor, like VI, is installed by default by Ubuntu and almost all Linux systems. and other Unix/linux

Contact Us

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: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.