vim tab size,8 空格改4空格

一定是 这个文件   ~/.vimrc

vim ~/.vimrc

 

加入 

set tabstop=4       " The width of a TAB is set to 4.
                    " Still it is a \t. It is just that
                    " Vim will interpret it to be having
                    " a width of 4.

set shiftwidth=4    " Indents will have a width of 4

set softtabstop=4   " Sets the number of columns for a TAB

set expandtab       " Expand TABs to spaces

即可

上一篇:renderer进程中的JS给CEF的browserC++进程发送消息


下一篇:Effective C++ 笔记 —— Item 28: Avoid returning “handles” to object internals.