由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - why terminal is not like an editor?
相关主题
The command line is powerful, but the UI can be more efficient!linux有没有类似logmein的软件
问个基础问题,关于linux command存放地址推荐ajaxterm
请教LINUX USERMOD命令 (转载).bash_profile not run when opening a terminal from desktop
找不到命令的路径如何使terminal里面总是显示一行当前目录?
有人用boybu 么?每次打开terminal,都会随机显示一首中文诗
请教如何更改启动时的默认目录?问一个 remote terminal 的Shell 问题
请教一个vim拷贝粘贴的问题command line升级LTS
问个terminal的问题问题
相关话题的讨论汇总
话题: command话题: terminal话题: like话题: editor话题: sudo
进入Linux版参与讨论
1 (共1页)
x********g
发帖数: 100
1
Suppose you entered a long command, now you want to entered the same command
with slight modificaitons, you press up arrow key and modify it. The
editing however, is not so convinient. Is there any hotkeys like in vim: /
for search, cw to change a word, etc.? Or maybe other terminal emulators
have such features?
a*****i
发帖数: 4391
2

command
Sure there are.
http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-sheet/

【在 x********g 的大作中提到】
: Suppose you entered a long command, now you want to entered the same command
: with slight modificaitons, you press up arrow key and modify it. The
: editing however, is not so convinient. Is there any hotkeys like in vim: /
: for search, cw to change a word, etc.? Or maybe other terminal emulators
: have such features?

x********g
发帖数: 100
3

Thanks! I am to enter the vi mode by adding "set editing-mode vi" in ~/.
inputrc. However, before I did that I have
"\e[1;2A": history-search-backward
"\e[1;2B": history-search-forward
in ~/.inputrc which enable Shift+up and Shift+down to search the command
history that matches my input. For example, suppose my last three commands
are
sudo gvim bla.sh
ls -a
./bla.sh
Now if I type "sudo" and Shift+up, it will complete my command to match the
nearest history that starts with "sudo", i.e. "sudo gv

【在 a*****i 的大作中提到】
:
: command
: Sure there are.
: http://www.catonmat.net/blog/bash-emacs-editing-mode-cheat-sheet/

e******d
发帖数: 310
4
if you use bash, add line
=============
set -o vi
=============
into .bashrc file
1 (共1页)
进入Linux版参与讨论
相关主题
问题有人用boybu 么?
Ubuntu向普通用户提供高级Screen功能 [ZZ]请教如何更改启动时的默认目录?
远程主机的问题重复出现请教一个vim拷贝粘贴的问题
ubuntu gnome 的菜单不见了----help!问个terminal的问题
The command line is powerful, but the UI can be more efficient!linux有没有类似logmein的软件
问个基础问题,关于linux command存放地址推荐ajaxterm
请教LINUX USERMOD命令 (转载).bash_profile not run when opening a terminal from desktop
找不到命令的路径如何使terminal里面总是显示一行当前目录?
相关话题的讨论汇总
话题: command话题: terminal话题: like话题: editor话题: sudo