3

我最初打算围绕 TextMate 提出这个问题,众所周知,它是一个了不起的编辑器,但仅在 OSX 上可用。我很好奇那些花时间学习使用 TextMate 的人如何有效地处理他们必须在非 OSX 平台上进行编辑的情况。但这确实是一个更普遍的问题。人们如何处理您无法使用首选文本编辑器的情况?

我主要使用 gvim 和 vim,而且我知道这些编辑器有一组相当深奥的键绑定,所以当我在另一个编辑器中编辑时,我经常会错误地输入我不想在尝试导航时输入的内容。这可能非常低效。

那么人们如何应对这些情况呢?只是吞下低效率?尝试避免这种情况或竭尽全力将需要编辑的文件放入您喜欢的编辑器中?您是否有一两个您精通的编辑器可以毫无问题地在它们之间切换?您是否更改了其他编辑器的键绑定以更接近您的首选编辑器?

4

11 回答 11

2

The advantage of using either vim or emacs as an editor is precisely that it's available on virtually any decently configured Unix platform (and this includes more esoteric systems as well, e.g. Darwin/OS X). Combined with the fact that you can store your configuration online (e.g. Dotfiles) this makes for a very strong argument, because the problem you described simply doesn't exist.

于 2009-03-01T13:09:54.297 回答
2

I work as a support technician, which means I'm frequently working on customer systems remotely. The unfortunate side effect is that I rarely have any choice over what editor I get to use in those situations. Generally speaking there's not a whole lot you can do about it unless the situation is one where it's feasible for you to install a new editor or bring a USB thumb drive or something similar with your editor pre-installed on it. In such a situation, by all means, if you plan to be working for an extended time period, take advantage of the opportunity. You'll work faster and more efficiently and it will be less frustrating.

In an environment (e.g. webex/RDC) where you cannot install software or use temporary media, you have two choices: live with whatever editor they have, or copy files back and forth from your system. Typically if I'm doing very minor editing I just suck it up and use whatever editor is available. If I know I'm going to be doing an extensive amount of editing, I find a way to transfer the file I'm working on back and forth. This still stinks, forcing you to interrupt your editing flow with file transfers, but I find my sanity makes it worth not struggling with something like notepad to do real editing or programming.

于 2009-03-01T13:23:20.083 回答
2

Since I work primarily in a windows environment, I keep Notepad++ installed on a flash drive. That way I can just pop the usb drive into a machine and have a quality editor, without having to install anything.

于 2009-03-01T13:28:50.473 回答
1

在我使用较长时间的机器上,我使用 SciTE。我也使用德沃夏克键盘。当在机器上来宾时,一切都不同了,因为钥匙在不合逻辑的地方。我只是用那里的东西进行编辑,或者将文件传递给源代码管理并在我的机器上进行编辑。

于 2009-03-01T13:06:46.800 回答
1

我求助于在客户站点的 win 机器上使用记事本。特别是因为我知道安装任何东西都不是一种选择,而且我知道记事本将永远存在。

于 2009-03-01T13:09:20.927 回答
1

For me the only time this happens is when I'm using someone else's system since I typically install a text editor that I am reasonably familiar with on each system that I own/use regularly. In that case, if I'm struggling too much, I move over and let the other person take the wheel (keyboard). FWIW, I use TextMate (sometimes vim) on OSX, TextPad (sometimes Notepad or even Edit on servers not under my direct control) on Windows, and vim on Linux.

于 2009-03-01T13:09:57.337 回答
0

我对几个不同的编辑器感到满意——vi、eclipse 和 PFE。如果我短期使用其他编辑器,我会处理它。如果是长期的话,谷歌是我的朋友,我会去下载一个我喜欢的。

于 2009-03-01T13:02:55.683 回答
0

在 Windows 上,我说服大家安装notepad++

在 mac TextMate规则

在 linux vim上

于 2009-03-01T13:03:23.577 回答
0

我在 linux 下使用 vi,在 Windows 下使用 Ultraedit。如果您正在执行一些 linux 管理或直接在 shell 中工作,Vi 是必须的。

如果您在窗口系统下工作,则面向鼠标的编辑器很有用。

无论如何,我认为您需要了解两者的基础知识。

于 2009-03-01T13:04:04.730 回答
0

I work regularly on Linux and Windows, and occasionally on OS X. Having to switch editors between them is a pain, so the obvious solution would be using some cross-platform editor. Right now I'm experimenting with Komodo Edit, which looks pretty promising.

If there's no decent editor in the machine, it doesn't take long to download and install one.

于 2009-03-01T13:09:47.650 回答
0

If you are programming under windows you might want to take a look at e text editor its basically TextMate for windows and supports the bundles and everything.

于 2009-06-18T00:54:07.717 回答