vi.vim 配置上下左右方向键和删除键 " An example for a vimrc file. " " Maintainer: Bram Moolenaar <Bram@vim.org> " Last change: 2002 Sep 19 " " To use it, copy it to " for Unix and OS/2: ~/.vimrc " for Amiga: s:.vimrc "
今天在使用vim编辑器时发现默认的tab键是8个字符,于是就想到把它设为四个空格,经过百度,得到了以下方法: 首先进入~/.vimrc 然后在文档末尾加上以下代码: set tabstop=4 设置tab键缩进为4个字符 set expandtab 转化为空格 set autoindent 设置自动缩进 但是这时又出现了新的问题,在运行时报错:TabError: Inconsistent use of tabs and spaces in indentation 为了解决这个问