在典型的智能手机上与 SSH 一起使用的优秀 Unix 编辑器是什么?

发布于 2024-09-24 08:03:09 字数 224 浏览 4 评论 0原文

我是一名 emacs 用户,正在考虑购买智能手机。我注意到很多手机键盘没有扩展键盘键(我的意思是像 ctr 和 esc 这样)。如果您必须通过 ssh 连接到服务器并进行紧急修复,那么智能手机用户会使用什么编辑器?我认为 VI 将是一个不错的选择,因为您大多只需要“esc”,并且您可能可以将其他内容映射到它。

我不打算开始通过电话进行所有开发,但当它是唯一选择时,我需要一个好的编辑器。

请提出建议!

I'm an emacs user considering getting a smartphone. I notice that a lot of the phone keyboards don't have extended keyboard keys (I mean thinks like ctr and esc). What editors do you smartphone people use if you have to connect to the server by ssh and do an emergency repair? I was thinking VI would be a good choice since you mostly just need "esc" and you might be able to map something else to it.

I'm not looking to start doing all my development over the phone, but I need a good editor for those times when it's the only option.

Suggestions please!

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

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

发布评论

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

评论(4

白昼 2024-10-01 08:03:09

如果您真的很硬核,您可以学习如何使用 ex,它是 vi 的非可视化版本。您甚至不需要任何转义键或控制键即可进行编辑。您不必依赖终端仿真器来正确模拟终端。您可以附加文本或使用 s/// 更改行内的文本。
例如:

$ cp /etc/services test.txt
$ ex test.txt
"test.txt" 576L, 18832C
Entering Ex mode.  Type "visual" to go to Normal mode.
:p
# Local services
:/finger
finger          79/tcp
:s/finger/toe/
toe             79/tcp
:wq

If you're really hardcore, you can learn how to use ex, which is a non-visual version of vi. You do not even need any escape or control keys to edit. You don't have to rely on your terminal emulator emulating a terminal correctly. You can append text or use s/// to change text within lines.
For example:

$ cp /etc/services test.txt
$ ex test.txt
"test.txt" 576L, 18832C
Entering Ex mode.  Type "visual" to go to Normal mode.
:p
# Local services
:/finger
finger          79/tcp
:s/finger/toe/
toe             79/tcp
:wq
三岁铭 2024-10-01 08:03:09

一个好的 ssh 客户端应该可以让你访问这些密钥。即使是 vi 用户也需要具有控制组合键。

A decent ssh client should give you access to those keys. Even a vi user needs to have control key combinations.

水水月牙 2024-10-01 08:03:09

我使用 midpSSH 从 Blackberry Pearl 连接到 HP UX 服务器,并使用 vim 进行简短编辑。

I use midpSSH to connect from my blackberry pearl to our HP UX server and I use vim for short editing.

倾城泪 2024-10-01 08:03:09

如果您将键盘连接到智能手机(通过蓝牙、USB 或其他方式),编程就会容易得多。

Programming is a lot easier if you attach a keyboard to your smartphone (via bluetooth, usb or otherwise).

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