Linux Shell脚本教程(LSST)---基本的vi命令
来源:互联网 发布:网络用语mtf是什么意思 编辑:程序博客网 时间:2024/05/16 14:21
这一部分大家都应该能看懂就不翻译了
Common vi editor command list
For this PurposeUse this vi Command SyntaxTo insert new textesc + i ( You have to press 'escape' key then 'i')To save fileesc + : + w (Press 'escape' key then 'colon' and finally 'w')To save file with file name (save as)esc + : + w "filename"To quit the vi editoresc + : + qTo quit without savingesc + : + q!To save and quit vi editoresc + : + wqTo search for specified word in forward directionesc + /word (Press 'escape' key, type /word-to-find, for e.g. to find word 'shri', type as/shri)To continue with search nTo search for specified word in backward directionesc + ?word (Press 'escape' key, type word-to-find)To copy the line where cursor is locatedesc + yyTo paste the text just deleted or copied at the cursoresc + pTo delete entire line where cursor is locatedesc + ddTo delete word from cursor positionesc + dwTo Find all occurrence of given word and Replace then globally without confirmation esc + :$s/word-to-find/word-to-replace/g
For. e.g. :$s/mumbai/pune/g
Here word "mumbai" is replace with "pune"
To Find all occurrence of given word and Replace then globally with confirmationesc + :$s/word-to-find/word-to-replace/cgTo run shell command like ls, cp or date etc within viesc + :!shell-command
For e.g. :!pwd
- Linux Shell脚本教程(LSST)---基本的vi命令
- Linux Shell脚本教程(LSST)---Linux是什么
- Linux Shell脚本教程(LSST) 一
- shell教程七:linux下的基本命令
- Shell脚本基本命令
- linux vi 基本命令
- shell脚本:shell的基本元素-8 基本命令查找
- Linux VI 编辑器的基本命令
- Linux vi编辑器的基本命令
- shell脚本编程教程之一 --- 基本命令+环境变量+正则表达式
- Linux 的shell基本命令
- Linux 基本的 shell 命令
- Linux shell 的基本命令
- 《Linux命令行与shell脚本》笔记--第3章:基本的bash shell命令
- linux基础 辨别 shell脚本 shell VI
- linux shell脚本教程
- Linux-Shell脚本编程-学习-1-Linux基本命令
- Linux-Shell脚本编程-学习-2-Linux基本命令
- Windows XP无法切换用户的解决办法
- SQL Server 2005---聚合函数(分组函数)
- Myeclipse8.5下手动安装svn插
- 语义web服务描述语言比较
- C与C++的相互调用问题
- Linux Shell脚本教程(LSST)---基本的vi命令
- 第2章重构原则
- 自己整理的js函数库
- PHP如何解析一个ini的配置文件?
- SSL协议的工作流程
- grep用法详解:grep与正则表达式
- 数据库设计经验谈
- Linux Shell脚本教程(LSST)---Linux是什么
- SSL协议的分析及实现