vimrc文档

参考:https://vi.stackexchange.com/questions/13398/are-there-any-comprehensive-docs-for-vimrc

在vim中输入

:options

然后里面就有各种选项的解释。
在这里插入图片描述

将缩进设置为空格

比如设置成4个空格:

" tabstop: number of spaces a <Tab> in the text stands for
set ts=4
" softtabstop: if non-zero, number of spaces to insert for a <Tab>
" Makes backspace in insert mode delete four spaces at once.
set sts=4
" expandtab: expand <Tab> to spaces in Insert mode
set et
" smartindent: do clever autoindenting
set si
" shiftwidth: number of spaces used for each step of (auto)indent
set sw=4
posted @ 2024-09-28 13:36  寻找繁星  阅读(0)  评论(0编辑  收藏  举报