Page Actions
Wiki Actions
User Actions
Submit This Story

zsh vi模式

最近试了一下zsh,看到介绍说很类似ksh,想到Unix的ksh有vi/emacs模式,于是就试了一下…

set -o vi

果然有用…

一些Feature

习惯vi[m]的应该很熟悉了,按 escape 可以进入 vi command 模式,这时就可以用到很多vi的命令了…比如:

  • k: 显示上一条命令
  • j: 下一条命令
  • h: 左移
  • l: 右移
  • /eselect: 类似vi里面,检索history里面所有包含eselect的命令
  • R: 替换
  • x: 删除
  • dd: 行删除
  • ^,$: 移动至首尾

等等等等….

Discussion

Belle, 2012/01/08 21:23

You are so awesome for helping me solve this myserty.

essays, 2010/07/23 08:52

GREAT….NICE…..>ONE…..>LIKE….»IT……….

Enter your comment
 
 
blog/2010/07/zsh_vimode.txt · Last modified: 2010/07/13 19:51 by MeaCulpa     Back to top
Recent changes RSS feed Creative Commons License Powered by PHP Driven by DokuWiki