lesson3 -Vim
2015-09-09 19:59
288 查看
1. creat newfile sudo vim newfile
read file sudo vim filename(if this file is not exist,creat a new one) and no houzhuiming
sudo vim /etc/passwd system account
2.change the owner of file
sudo chown user file
sudo chown root newfile
exit
3. editing and navigatating
insert: 'a'
get out insert moden: 'esc'
find sth,seach: :/ *max* notice space max means what are you looking for
:/ ?
hit 'n' : go to the next search
4. command in vim
open file: :e file
colse file :q! (no change,no save)
:wq (save and close) back to system ,quit vim
:w filename (save as another file)
本文出自 “SystemAdmin笔记” 博客,请务必保留此出处http://christhai.blog.51cto.com/1584747/1693245
read file sudo vim filename(if this file is not exist,creat a new one) and no houzhuiming
sudo vim /etc/passwd system account
2.change the owner of file
sudo chown user file
sudo chown root newfile
exit
3. editing and navigatating
insert: 'a'
get out insert moden: 'esc'
find sth,seach: :/ *max* notice space max means what are you looking for
:/ ?
hit 'n' : go to the next search
4. command in vim
open file: :e file
colse file :q! (no change,no save)
:wq (save and close) back to system ,quit vim
:w filename (save as another file)
本文出自 “SystemAdmin笔记” 博客,请务必保留此出处http://christhai.blog.51cto.com/1584747/1693245
相关文章推荐
- 引导页的铺设
- Java简单彩票系统(35选7)
- HDU-2732 Leapin's Lizards
- 使用分布式数据库集群做大数据分析之OneProxy
- button初始化类目
- lesson2 -basic Linux tasks
- 哈哈 一个小程序
- HDU 5024(枚举+搜索/记忆化搜索)
- poj 3087 Shuffle'm Up
- ORA-00904:“”:标识符无效
- 1001--Java 多线程 并发编程
- URL最大长度
- Git book 中文
- GPU编程中的常用几何函数、纹理映射函数、偏导数函数
- 使用PHP7还是需要谨慎(2015-09-09)
- [sed] 分支&测试
- lesson1 - Navigation in Linux
- 神奇的点9工具与.9图片效果
- 引导页
- 时间问题