Linux 上的文本编辑器(除了 Vi)?

发布于 2024-07-05 10:13:25 字数 1448 浏览 12 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(30

笑脸一如从前 2024-07-12 10:13:26

除了 Vi 之外最好的一个? 维姆。

Best one besides Vi? Vim.

心房敞 2024-07-12 10:13:26

不幸的是,我发现最好的是 gedit 。 花几个小时使用它,您会发现它还不错,有插件和主题。 您可以使用命令行打开其中的文档。

The best I've found is gedit unfortunately. Spend a few hours with it and you'll discover it's not so bad, with plugins and themes. You can use the command line to open documents in it.

梅倚清风 2024-07-12 10:13:26

pico/nano +1——轻量级,完成工作,很好的帮助

+1 for pico/nano -- lightweight, gets the job done, good help

傲世九天 2024-07-12 10:13:26

我的一个朋友非常信赖 jed,http://www.jedsoft.org/jed/

Friend of mine swears by jed, http://www.jedsoft.org/jed/

如果没有 2024-07-12 10:13:26

首先,我不想发动战争。

我没有使用过 TextMate,但我使用过它的 Windows 等效工具 e-TextEditor,我可以理解为什么人们喜欢它。

为了寻找 Linux 上完美的文本编辑器,我还尝试了许多文本编辑器和 IDE。 我尝试过 jEdit、vim、emacs(虽然我在大学时很喜欢)和其他各种工具。

在 Linux 上我选择了 gEdit。 虽然我有时会使用 Komodo Edit。 当我赶时间时,我使用 gEdit 纯粹是因为它比 Komodo Edit 更快。
gEdit 有很多插件,并带有一些漂亮的配色方案。 我认为一旦 gEdit 拥有适当的代码整洁工具,它就会很酷。
我认为我使用 Komodo Edit 的唯一原因是项目文件功能。

我有一个朋友捐赠了他的《Vi Improvement》一书,希望他能让我转向 Vim。 这本书厚了一英寸多,完全让我放弃了投入时间学习 Vim。

每次我找到编辑器 - 我总是发现自己又回到了 gEdit。 这是一个在正确的地方装饰的编辑器。 尝试一下 gEdit,它是 Ubuntu 和 Linux Mint 中的默认文本编辑器。

以下是有关如何使 gEdit 的外观和行为(某种程度上)像 TextMate 的优秀指南的链接:
http://grigio.org/pimp_my_gedit_was_textmate_linux

希望有所帮助。

First I don't want to start a war..

I haven't used TextMate but I have used its Windows equivalent, e-TextEditor and I could understand why people love it.

I've also tried many text editors and IDEs in my quest in finding the perfect text editor on Linux. I've tried jEdit, vim, emacs (although I used to love when I was at uni) and various others.

On Linux I've settled with gEdit. Although I do use Komodo Edit from time to time. When I'm in a hurry I use gEdit purely because it is quicker than Komodo Edit.
gEdit has plenty of plugins and comes with some nice colour schemes. I reckon once gEdit has a proper code-tidy facility it'll be cool.
I think the only reason I use Komodo Edit is the project file facility.

I have a friend who donated his 'Vi Improved' book in the hope that he can convert me to Vim. The book is over an inch thick and completely put me off in investing time in learning Vim..

Everytime I find an editor - I always find myself going back to gEdit. It is a frills-in-the-right-places editor. Give gEdit a go, it is the default text editor in Ubuntu and Linux Mint.

Here is a link to an excellent guide on how to get gEdit to look and behave (somewhat) like TextMate:
http://grigio.org/pimp_my_gedit_was_textmate_linux

Hope that helps.

清浅ˋ旧时光 2024-07-12 10:13:26

我同意 Mike 的观点,尽管我是 Vim 的死忠。 最近,当我进行轻量级 Ruby 脚本编写时,我经常使用 GEdit。 标准编辑器(加上 Ruby 代码片段)非常实用且精美,可以很好地缓解全功能、始终在线的编程编辑器的负担。

I agree with Mike, though I'm a Vim die-hard. I've been using GEdit quite frequently lately when I'm doing lightweight Ruby scripting. The standard editor (plus Ruby code snippets) is extremely usable and polished, and can provide a nice reprieve from full-strength, always-on programming editors.

月亮坠入山谷 2024-07-12 10:13:26

我已经使用 Emacs 20 年了。 这很棒,而且在任何地方都适用。 我还有 TextMate,我在 Mac 上用它来做一些事情(HTML 模式很棒)。 如果您想进行 Ruby 开发,Netbeans 支持 Ruby,并且它也可以在所有平台上运行。

http://www.netbeans.org/features/ruby/index.html

我看过一些博客等声称它是可用的最好的 Ruby 环境。

I've used Emacs for 20 years. It's great and it works everywhere. I also have TextMate, which I use for some things on the Mac (HTML mode is great). If you want to do Ruby development, Netbeans supports Ruby and it also runs on all platforms.

http://www.netbeans.org/features/ruby/index.html

I've seen some blogs, etc claiming that it's the best Ruby environment available.

泪之魂 2024-07-12 10:13:26

我刚刚开始使用 OSX。 我发现的免费编辑器:

  • Komodo by ActiveState。 免费版本没有调试器或正则表达式编辑器(尽管 Python 附带一个,即 redemo.py),但完全可用。
  • ERIC,用 PyQT 编写。
  • 带有 PyDev 的 Eclipse 是我在所有平台上编辑 Python 的首选选项。 漂亮干净的 GUI,不错的调试器。 良好的语法解析等。

I've just started using OSX. Free editors of note that I've discovered:

  • Komodo by ActiveState. No debugger or regex editor (although one comes with Python, i.e. redemo.py) in free version but perfectly usable.
  • ERIC, written in PyQT.
  • Eclipse with PyDev is my preferred option for editing Python on all platforms. Nice clean GUI, decent debugger. Good syntax parsing etc.
无声静候 2024-07-12 10:13:26

我个人使用 MacVim,它基本上是 Mac OSx 的 GVim。 不过,我读了很多有关 Redcar 的文章,它是 Linux 下的文本编辑器,它共享许多 Textmate 功能。 检查下方的链接。

Redcar
Redcar 上的 LURG 讲座

I personally use MacVim which is basically a GVim for Mac OSx. However I have been reading alot about Redcar, which is a text editor for Linux, which shares a lot of the Textmate functionality. Checkout the links below.

Redcar
LURG Lecture on Redcar

唔猫 2024-07-12 10:13:26

TextMate 是一个很棒的编辑器,并且有一种方法可以复制 GEdit 中的一些功能。 在这里查看文章:http:// rubymm.blogspot.com/2007/08/make-gedit-behave-roughly-like-textmate.html 修改 GEdit 使其行为类似于 TextMate。

TextMate is a great editor, and there is a way to replicate some of the functionality in GEdit. Check the article out here: http://rubymm.blogspot.com/2007/08/make-gedit-behave-roughly-like-textmate.html to modify GEdit to behave like TextMate.

本宫微胖 2024-07-12 10:13:26

Vim 是 Vi 的一个很好的升级,提供了不错的功能和一组更可用的键绑定和默认行为。 然而,像 GVim、KVim 甚至 Cream 这样的图形版本在我看来是极其缺乏的。 我最近经常使用Geany,但它也有其缺点。

我只是在 Linux 上的程序员记事本、Smultron 或 TextMate 联盟中找不到任何东西。 遗憾的是,因为我想生活在一个全开源的网络世界中,所以我不得不从一个几乎正确的编辑器跳到另一个编辑器。

Vim is a nice upgrade for Vi, offering decent features and a more usable set of keybindings and default behaviour. However, graphical versions like GVim, KVim and even Cream are extremely lacking in my opinion. I've been using Geany a lot lately, but it also has its shortcomings.

I just can't find something in the league of Programmers Notepad, Smultron or TextMate on Linux. A shame, since I want to live in an all open source cyberworld, I'm stuck hopping from one almost-right editor to another.

风为裳 2024-07-12 10:13:26

Sublime Text 2 是我的最爱。
直观易懂且相当强大。

Sublime Text 2 is my favorite.
Intuitively understandable and quite powerful.

月下客 2024-07-12 10:13:26

您可以尝试使用 ruby​​ 模式的 Emacs、Rinari(针对 Rails)和 yasnippet 提供像 Textmate 这样的自动片段。

You can try Emacs with ruby-mode, Rinari (for Rails) and yasnippet which provides automatic snippets like Textmate.

不奢求什么 2024-07-12 10:13:26

当我离开 Eclipse 时,我使用 joe 进行简单(而不是那么简单)的编辑。

它使用经典的 Wordstar 键绑定 - 虽然我从未使用过 Wordstar,但它对很多人来说是一个卖点。

它简单、支持良好、重量轻,并且具有适用于所有内容的二进制文件。

I use joe for simple (and not so simple) editing when I'm away from Eclipse.

It uses the classic Wordstar keybindings- although I've never used Wordstar, it's a selling point for many people.

It's easy, well-supported, light-weight and it has binaries available for everything.

阳光的暖冬 2024-07-12 10:13:26

我喜欢 Kate,因为它有几个有趣的功能(已引用),这些功能通常在(较重的)IDE 中找到。 然而,我最喜欢的功能是它的终端窗口,它对于快速执行保存-编译-执行组合非常实用。

Nedit 是另一个有效的选项,包含许多功能(并且它没有很多依赖项:恕我直言,这是一个巨大的优势)。

对于在 shell 中进行编辑,当我无法使用 VIM 时,我会立即寻找 pico 或 nano(但我不会推荐它们用于持续开发:对于快速编辑,它们是完美的)。

I love Kate because it has several interesting features (already cited) usually found in (heavier) IDEs. My favorite feature, however, is its terminal window that is very practical for quickly performing the save-compile-execute combo.

Nedit is another valid option, packed with lots of features (and it hasn't lots of dependencies: that's a huge plus IMHO).

For editing in a shell, when I cannot use VIM, I look immediately for pico or nano (but I would not recommend them for continuous development: for rapid editing they are perfect).

清醇 2024-07-12 10:13:26

如果只有你一个人呢? 今天就用你想用的东西; 如果需要,可以在中流切换。

是一个团队吗? 尝试与编辑无关。 设置空白标准(是否允许使用制表符?一个制表符代表多少个空格?),但否则允许任何人使用他们想要的任何编辑器。

是一个进行结对编程的团队吗? 这就是你可能需要一个团队标准编辑器的地方,只是为了让程序员可以轻松地通过键盘。

为了帮助在一个或多个编码员使用 Emacs 的商店中实施标准空白策略:您可以通过在每个文件源文件底部粘贴一些注释来告诉 Emacs 您的空白策略。 例如,

# Local Variables:
# tab-width: 2
# ruby-indent-level: 2
# indent-tabs-mode: nil
# End:

任何在该文件上使用 emacs(或 xemacs)的人都会自动获得组标准缩进。

If it's just you? Use what you want to use today; switch in mid-stream if you want.

Is it a team? Try to be editor-agnostic. Set standards for white-space (are tabs allowed? How many spaces does a tab represent?), but otherwise allow anyone to use whichever editor they want.

Is it a team doing pair-programming? That's where you may need a team-standard editor, just so that programmers can easily pass the keyboard.

To help implement a standard white-space policy in a shop where one or more coders is using Emacs: You can tell Emacs about your white-space policy with some comments stuck at the bottom of every file source file. For example,

# Local Variables:
# tab-width: 2
# ruby-indent-level: 2
# indent-tabs-mode: nil
# End:

Anyone using emacs (or xemacs) on that file will automatically get the group standard indentation.

风向决定发型 2024-07-12 10:13:25

Emacs 是一个很棒的文本编辑器。 一旦你成为高级用户,它就会拥有巨大的力量。 您可以访问 shell,在任意数量的子窗口中打开任意数量的文件,以及极其强大的脚本支持,可让您添加各种简洁的功能。

我一直在使用 ruby​​ 模式,它为 ruby​​ 添加了语法突出显示等功能,并且对于每种主要语言都存在同样的情况。

如果坚持下去,您可以只使用键盘而无需触摸鼠标,这将显着提高您的编辑速度。

如果您想从更基本的东西开始,gedit 很好...它还内置了语法突出显示,适用于大多数基于文件扩展名的语言。 它也随操作系统一起提供(尽管 emacs 您可以使用 apt-get 或一些类似的包查找实用程序轻松安装)。

更新:我认为 gedit 是完全基于 GUI 的,所以学习 emacs 会很有用,以防你只使用 shell(它在 shell 和图形模式下都有完整的功能)。

进一步更新:仅供参考,我并不是想将 Emacs 推向 Vim,它只是我所使用的,而且它是一个很棒的编辑器(我确信 Vim 也是如此)。 一开始它令人望而生畏(我确信 Vim 也是如此),但问题是关于 Linux 上除 vi 之外的文本编辑器...Emacs 对我来说似乎是合理的选择,但 gedit 是一个很棒的简单文本编辑器,具有一些不错的功能如果这就是您所寻找的全部。

Emacs is a wonderful text editor. It has huge power once you become a power user. You can access a shell, have as many files open as you want in as many sub-windows and an extremely powerful scripting support that lets you add all kinds of neat features.

I have been using a ruby-mode which adds syntax highlighting and whatnot to ruby, and the same exists for every major language.

If you keep at it, you can use exclusively the keyboard and never touch the mouse, which increases your editing speed by a significant margin.

If you want to start with something a lot more basic though, gedit is nice... it has built in syntax highlighting as well for most languages based on the filename extension. It comes with the OS as well (though emacs you can easily install with apt-get or some similar package finder utility).

UPDATE: I think gedit is exclusively GUI based though, so it would be useful to learn emacs in case you are stuck with just a shell (it is fully featured in both shell and graphical mode).

FURTHER UPDATE: Just FYI, I am not trying to push Emacs over Vim, it's just what I use, and it's a great editor (as I'm sure Vim is too). It is daunting at first (as I'm sure Vim is too), but the question was about text editors on Linux besides vi... Emacs seems the logical choice to me, but gedit is a great simple text editor with some nice features if that's all you are looking for.

梦中的蝴蝶 2024-07-12 10:13:25

我发现 Geany (http://geany.uvena.de/) 相当不错。

I find Geany (http://geany.uvena.de/) quite good.

删除会话 2024-07-12 10:13:25

我在 Linux/Solaris/etc 中使用 pico 或 nano 作为我的“休闲”文本编辑器。 它很容易掌握,虽然你在菜单中丢失了几行文本,但至少很容易看到如何退出等。

我认为,你甚至可以扩展 nano,并添加语法突出显示。

I use pico or nano as my "casual" text editor in Linux/Solaris/etc. It's easy to come to grips with, and whilst you lose a couple of rows of text to the menu, at least it's easy to see how to exit, etc.

You can even extend nano, I think, and add syntax highlighting.

眼眸里的那抹悲凉 2024-07-12 10:13:25

我在 Linux 上使用 sublime Text

I use sublime Text on linux.

-残月青衣踏尘吟 2024-07-12 10:13:25

尝试抄写员。 它试图成为 Linux 的 TextMate 替代品。

2020年编辑:被遗忘在历史的迷雾中

Try Scribes. It tries to be a TextMate replacement for Linux.

2020 edit: forgotten in the mists of history

緦唸λ蓇 2024-07-12 10:13:25

我使用 SciTE
非常小而简单的文本编辑器。

I use SciTE
very small and simple text editor.

兔小萌 2024-07-12 10:13:25

我喜欢 jEdit (http://www.jedit.org) 的多功能性,它有很多插件,跨平台,还有我一直使用的块选择之类的东西。

缺点是,因为它是用java编写的,所以它不是最快的。

I like the versatility of jEdit (http://www.jedit.org), its got a lot of plugins, crossplatform and has also stuff like block selection which I use all the time.

The downside is, because it is written in java, it is not the fastest one.

人生百味 2024-07-12 10:13:25

Kate,KDE 高级文本编辑器相当不错。 它具有语法突出显示、块选择模式、终端/控制台、会话、水平和垂直窗口分割等。

Kate, the KDE Advanced Text Editor is quite good. It has syntax highlighting, block selection mode, terminal/console, sessions, window splitting both horizontal and vertical etc.

烟燃烟灭 2024-07-12 10:13:25

替代文本编辑器? 尝试 Diakonos,“面向大众的 Linux 编辑器”。 默认键盘映射与预期的剪切、复制、粘贴、撤消、打开、保存等功能相同。

Alternative text editors? Try Diakonos, "a Linux editor for the masses". The default keyboard mapping is as expected for cut, copy, paste, undo, open, save, etc.

温柔女人霸气范 2024-07-12 10:13:25

不要忘记NEdit! 小巧轻便,但具有语法突出显示和宏记录/重播功能。

Don't forget NEdit! Small and light, but with syntax highlighting and macro record/replay.

凉城凉梦凉人心 2024-07-12 10:13:25

在 Mac OS X 上,我从 1990 年代初就开始使用 BBEdit,因此我将其用作所有其他编辑器的参考。 我有时使用 BBEdit 在 Linux 机器上使用 ftp 模式编辑文件,如果您有到 Linux 机器的快速网络连接,那么效果非常好。

我两年前学习了 emacs,因为我加入的编程团队的其他成员都使用它。 我发现 emacs 功能强大,但在很多方面都令人烦恼地过时,但是一旦你学会了 emacs,你就可以在任何平台(Linux、OS X、Windows)上使用它。 这是我现在工作中几乎只使用的编辑器。 不过,我需要几年的时间才能掌握它的所有功能。

我还在 Linux 上使用过 gedit,发现它非常有用,但我还没有尝试将它用作任何项目的主要编辑器。

我有一位同事使用 Komodo Edit 4.4(来自 activestate.com 免费),在 Windows 计算机上运行它,但在 ftp 模式下使用它,以便她可以在我们的 Linux 服务器上编辑文件。 Komodo Edit 有许多不错的功能,但第一次启动需要很长时间。

On Mac OS X, I have used BBEdit since the early 1990's, so I use that as my reference for all other editors. I sometimes use BBEdit to edit files on a Linux box using ftp mode, and that works very well if you have a fast network connection to the Linux box.

I learned emacs two years ago because the rest of the programming team I joined uses it. I find emacs powerful but annoyingly old-fashioned in many ways, but once you have learned emacs, you can use it on any platform (Linux, OS X, Windows). This is the editor I use almost exclusively at work now. It is going to take me years to master all its features, though.

I have also used gedit on Linux and found it very usable, but I haven't tried to use it as my primary editor for any project.

I have a colleague at work who uses Komodo Edit 4.4 (free from activestate.com), running it on a Windows computer but using it in ftp mode so she can edit files on our Linux server. Komodo Edit has many nice features, but it takes a looonnnggg time to launch the first time.

却一份温柔 2024-07-12 10:13:25

当我搜索适用于 Linux 的 TextMate 替代方案时,我最终使用了 Geany。 它不是那么强大,但仍然很好用。 凯特的绝佳替代者。

When I searched for TextMate alternative for Linux, I ended up using Geany. It's not as powerfull, but still nice to work with. Great replacement for Kate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文