VIM大法

文档状态:编辑中....


EMACSer们,亮剑吧!


暂无评论



Table of Contents

Intro


宇宙第一不介绍

问题集


起源

事情是这样的,那是大一的春天,有一天我打开vim进行保存的时候,呵呵.
"m" E212: Can't open file for writing

毛病错误?爸爸来整你!

  1. 开始:help E212
  2. 得到答案

*E190* *E212* Cannot open "{filename}" for writing Can't open file for writing For some reason the file you are writing to cannot be created or overwritten. The reason could be that you do not have permission to write in the directory or the file name is not valid.

  1. 搜了得出使用 w !sudo tee %,从此踏上不归路

概念

  1. vim 窗口和缓冲区

tips

  1. :%!xxd转换成16进制形式
    问题起源于一直使用od -x 查看二进制文件,后来发现vim也可以

root保存权限问题