Linux运维细讲之vim的基础使用二
2016-02-26 22:54
232 查看
上一篇是讲了一部分最基础的使用~~下面继续讲解~~
有些时候你用vim打开一个文件你会发现有这么一大段话
主要是因为你上次操作不当导致 意外中断的~~
直接在键盘上敲击 d则可删除临时文件。
其他命令
有些时候你用vim打开一个文件你会发现有这么一大段话
E325: ATTENTION Found a swap file by the name ".mm.swp" owned by: ddddddd dated: Fri Feb 26 22:35:21 2016 file name: ~dddddd/Documents/mm modified: YES user name: sddd host name: localhost process ID: 11775 While opening file "mm" dated: Fri Feb 26 22:33:41 2016 (1) Another program may be editing the same file. If this is the case, be careful not to end up with two different instances of the same file when making changes. Quit, or continue with caution. (2) An edit session for this file crashed. If this is the case, use ":recover" or "vim -r mm" to recover the changes (see ":help recovery"). If you did this already, delete the swap file ".mm.swp" to avoid this message. Swap file ".mm.swp" already exists! [O]pen Read-Only, (E)dit anyway, (R)ecover, (D)elete it, (Q)uit, (A)bort:
主要是因为你上次操作不当导致 意外中断的~~
直接在键盘上敲击 d则可删除临时文件。
其他命令
ctrl+f翻下一页
ctrl+b翻回上一页
$跳到该行尾
^跳到该行头
gg跳到文件头
相关文章推荐
- 基于AT91SAM9261EK的嵌入式Linux+Cramfs根文件系统移植成功
- Linux常用命令
- 虚拟机中使linux系统分辨率变大,能够在虚拟机全屏显示
- CentOS挂载U盘、移动硬盘以及文件拷贝、备份
- Linux权限管理简介
- Linux下编译《UNIX环境高级编程》的第一个程序时出错的处理方法
- Linux精讲——文件和目录属性
- CentOS 7关闭firewalld启用iptables
- CentOS6和CentOS7服务开机启动
- centos 6.5 lamp环境搭建
- vmware下linux虚拟机传文件解决方案之 xftp
- less 命令翻页键 列表
- Linux初讲——系统命令行常用快捷键
- php laravel mysql无法连接处理方案(linux服务器配置)
- 关于Linux中安装软件和加解压
- Centos6.5更换yum源
- Linux基本命令――vi文本编辑器
- Linux驱动子系统之输入子系统
- 【Linux】——搭建nexus
- linux 进程管理