Merge pull request #4296 from chenzhijun/master

翻译完20160717 BEST TEXT EDITORS FOR LINUX COMMAND LINE
This commit is contained in:
Ezio 2016-08-09 17:31:28 +08:00 committed by GitHub
commit 1a301c6242
2 changed files with 93 additions and 95 deletions

View File

@ -1,95 +0,0 @@
Translating by chenzhijun
BEST TEXT EDITORS FOR LINUX COMMAND LINE
==========================================
![](https://itsfoss.com/wp-content/uploads/2016/07/Best-Command-Line-Text-Editors-for-Linux.jpg)
A text editor is a must have application for any operating system. We have no dearth of [best modern editors for Linux][1]. But those are GUI based editors.
As you know, the real power of Linux lies in the command line. And when you are working in command line, you would need a text editor that could work right inside the terminal.
For that purpose, today we are going to make a list of best command line text editors for Linux.
### [VIM][2]
If youre on Linux for quite some time, you must have heard about Vim. Vim is an extensively configurable, cross-platform and highly efficient text editor.
Almost every Linux distribution comes with Vim pre-installed. It is extremely popular for its wide range of features.
![](https://itsfoss.com/wp-content/uploads/2016/07/vim.png)
>Vim User Interface
Vim can be quite agonizing for first-time users. I remember the first time I tried to edit a text file with Vim, I was completely puzzled. I couldnt type a single letter on it and the funny part is, I couldnt even figure out how to close this thing. If you are going to use Vim, you have to be determined for climbing up a very steep learning curve.
But after you have gone through all that, combed through some documentations, remembered its commands and shortcuts you will find that the hassle was worth it. You can bend Vim to your will customizing its interface however it seems fit to you, give your workflow a boost by using various user scripts, plugins and so on. Vim supports syntax highlighting, macro recording and action history.
As in the official site, it is stated that,
>**Vim: The power tool for everyone!**
It is completely up to you how you will use it. You can just use it for simple text editing, or you can customize it to behave as a full-fledged IDE.
### [GNU EMACS][3]
GNU Emacs is undoubtedly one of the most powerful text editor out there. If you have heard about both Vim and Emacs, you should know that both of these editors have a very loyal fan-base and often they are very serious about their text editor of choice. And you can find lots of humor and stuff on the internet about it:
Suggested Read [Download Linux Wallpapers That Are Also Cheat Sheets][4]
![](https://itsfoss.com/wp-content/uploads/2016/07/vi-emacs-768x426.png)
>Vim vs Emacs
Emacs is cross-platform and has both command-line and graphical user interface. It is also very rich with various features and, most importantly, extensible.
![](https://itsfoss.com/wp-content/uploads/2016/07/emacs.png)
>Emacs User Interface
Just as Vim, Emacs too comes with a steep learning curve. But once you master it, you can completely leverage its power. Emacs can handle just about any types of text files. The interface is customizable to suit your workflow. It supports macro recording and shortcuts.
The unique power of Emacs is that it can be transformed into something completely different from a text editor. There is a large collection of modules that can transform the application for using in completely different scenarios, like calendar, news reader, word processor etc. You can even play games in Emacs!
### [NANO][5]
When it comes to simplicity, Nano is the one. Unlike Vim or Emacs, the learning curve for nano is almost flat.
If you want to simply create & edit a text file and get on with your life, look no further than Nano.
![](https://itsfoss.com/wp-content/uploads/2016/07/nano.png)
>Nano User Interface
The shortcuts available on Nano are displayed at the bottom of the user interface. Nano includes only the basic functions of a text editor.
It is minimal and perfectly suitable for editing system & configuration files. For those who doesnt need advanced features from a command-line text editor, Nano is the perfect match.
### OTHERS
There is one more editor Id like to mention:
[The Nice Editor (ne)][6]: The official site says,
>If you have the resources and the patience to use emacs or the right mental twist to use vi then probably ne is not for you.
Basically, ne features many advanced features like Vim or Emacs, including scripting and macro recording. But it comes with a more intuitive control and not so steep learning curve.
### WHAT DO YOU THINK?
I know that if you are a seasoned Linux user, youll say these are the obvious candidates for the list of best command line text editors for Linux. Therefore, I would like to ask you, if there are some other command line text editors for Linux that you want to share with us?
--------------------------------------------------------------------------------
via: https://itsfoss.com/command-line-text-editors-linux/?utm_source=newsletter&utm_medium=email&utm_campaign=ubuntu_forums_hacked_new_skype_for_linux_and_more_linux_stories
作者:[Munif Tanjim][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/munif/
[1]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[2]: http://www.vim.org/
[3]: https://www.gnu.org/software/emacs/
[4]: https://itsfoss.com/download-linux-wallpapers-cheat-sheets/
[5]: http://www.nano-editor.org/
[6]: http://ne.di.unimi.it/

View File

@ -0,0 +1,93 @@
Linux命令行下的优秀文本编辑软件
==========================================
![](https://itsfoss.com/wp-content/uploads/2016/07/Best-Command-Line-Text-Editors-for-Linux.jpg)
文本编辑软件在任何操作系统上都是必备的软件。我们不缺乏在 Linux 上非常现代化的编辑软件,但是他们都是基于 GUI (图形界面)的编辑软件。
正如你所了解的Linux 真正的魅力在于命令行。另外当你正在用命令行工作时,你可能需要一个可以在控制台窗口就可以运行的文本编辑器。
正因为这个目的,我们准备了一个基于 Linux 命令行的文本编辑器清单。
### [VIM][2]
如果你已经使用 Linux 有一段时间,那么你肯定听到过 Vim 。Vim 是一个高可配、跨平台、高效率的文本编辑器。
几乎所有的 Linux 发行版本都已经内置了 Vim ,由于它的丰富特性已经变得非常流行的。
![](https://itsfoss.com/wp-content/uploads/2016/07/vim.png)
>Vim 用户窗口
Vim 可能会让第一次使用它的人感到非常痛苦。我记得我第一次尝试使用 Vim 编辑一个文本文件时,我是非常困惑的。我不能用 Vim 输入一个字母,更有趣的是,我甚至不知道该怎么关闭它。如果你准备使用 Vim ,你需要有决心跨过一个曲折的学习路线。
一旦你经历过那些,通过梳理一些文档,记住它的命令和快捷键,你会发现这段学习经历是非常值得的。你可以将 Vim 按照你的意愿进行改造--配置一个让你看起来舒服的界面通过使用脚本或者插件等来提高工作效率。Vim 支持语句高亮,宏记录和操作记录。
在Vim官网上它是这样介绍的
>**Vim: The power tool for everyone!**
如何使用它完全取决于你。你可以仅仅使用它作为文本编辑器或者你可以将它打造成一个完善的IDE Integrated Development Environment:集成开发环境)。
### [GNU EMACS][3]
GNU Emacs 毫无疑问是一个非常强大的文本编辑器。如果你听说过 Vim 和 Emacs ,你应该知道这两个编辑器都拥有非常忠诚的粉丝基础,并且他们对于文本编辑器的选择非常看重。你也可以在互联网上找到大量关于他们的段子:
建议阅读 [Download Linux Wallpapers That Are Also Cheat Sheets][4]
![](https://itsfoss.com/wp-content/uploads/2016/07/vi-emacs-768x426.png)
>Vim vs Emacs
Emacs 是一个拥有图形界面和命令行界面并且跨平台的软件。它也拥有非常多的特性,更重要的是,它是支持扩展的。
![](https://itsfoss.com/wp-content/uploads/2016/07/emacs.png)
>Emacs 用户界面
像Vim一样Emacs 也需要经历一个曲折的学习路线。但是一旦你掌握它你就能知道它的强大。Emacs可以处理几乎所有类型文本文件。它的界面可以定制成适合你的工作流。它也支持宏记录和快捷键。
Emacs 独特的特性是它可以转换成和文本编辑器完全不同的的东西。这里有大量的模块集可是使它在不同的场景下成为不同的应用,例如-计算器,新闻阅读,文字处理器等。你甚至都可以在 Emacs 里面玩游戏。
### [NANO][5]
如果说到简易方便的软件Nano 就是一个。 不像 Vim 和 Emacs , nano 的学习曲线是平滑的。
如果在生活中你仅仅是想创建和编辑一个文本文件Nano 估计是最适合你的了。
![](https://itsfoss.com/wp-content/uploads/2016/07/nano.png)
>Nano 用户界面
Nano 可用的快捷键都在用户界面的下方展示出来了。Nano 仅仅拥有最基础的文本编辑软件的功能。
它非常小巧并且非常适合编辑系统和配置文件。对于那些不需要命令行编辑器功能的人来说Nano是完美配备。
### 其它
这里还有一些我想要提及其它编辑器:
[The Nice Editor (ne)][6]: 官网是这样介绍的:
>如果你有相关的资源或者耐心来使用 Emacs 或者正确的心理准备来使用 Vim ,那么 ne 可能不适合你。
基本上 ne 拥有像 Vim 和 Emacs 一样多的先进功能,包括--脚本和宏记录。但是它有更为直观的操作方式和平滑的学习路线。
### 你认为呢?
我知道如果你是一个熟练的 Linux 用户,你可以会说上面列举的 Linux 最好的命令行编辑器清单上的候选者都是非常明显的。因此我想跟你说,如果你还知道其他的 Linux 命令行文本编辑器你是否愿意跟我们一同分享?
--------------------------------------------------------------------------------
via: https://itsfoss.com/command-line-text-editors-linux/?utm_source=newsletter&utm_medium=email&utm_campaign=ubuntu_forums_hacked_new_skype_for_linux_and_more_linux_stories
作者:[Munif Tanjim][a]
译者:[chenzhijun](https://github.com/chenzhijun)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/munif/
[1]: https://itsfoss.com/best-modern-open-source-code-editors-for-linux/
[2]: http://www.vim.org/
[3]: https://www.gnu.org/software/emacs/
[4]: https://itsfoss.com/download-linux-wallpapers-cheat-sheets/
[5]: http://www.nano-editor.org/
[6]: http://ne.di.unimi.it/