winodw vim编辑器tab设置4个字符
Other
2014-02-10
window版本的gVim在默认情况下tab宽度为8个字符,习惯使用4个空格宽度作为tab来说有点别扭,可以找到gVim的安装目录下的_vimrc文件添加如下代码即可:
" size of a hard tabstop set tabstop=4 " size of an "indent" set shiftwidth=4 " a combination of spaces and tabs are used to simulate tab stops at a width " other than the (hard)tabstop set softtabstop=4 You may also want to try the following: " make "tab" insert indents instead of tabs at the beginning of a line set smarttab " always uses spaces instead of tab characters set expandtab
以上代码来自stackoverflow,效果不错。
文字链接:《winodw vim编辑器tab设置4个字符》
文章地址:http://www.qttc.net/201402409.html
除非标注,琼台博客所有博文均为原创,转载请加文字链接注明来源
乳名?小名?昵称?网名?均可
email,放心,我不会给你乱投广告的
想获得回访就把你的站点URL写上(没有留空)
[NOTICE]木要投放广告
[NOTICE]木要骂人,说不该说的话
[NOTICE]自由言论,但要遵纪守法