八千里路云和月

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

设置用空格替换 Tab

 1 " Indentation settings for using 4 spaces instead of tabs.
 2 " Do not change 'tabstop' from its default value of 8 with this setup.
 3 " set expandtab
 4 " set shiftwidth=2
 5 " set softtabstop=2
 6 
 7 " Indentation settings for using hard tabs for indent. Display tabs as
 8 " four characters wide.
 9 set shiftwidth=4
10 set tabstop=2
11 set expandtab

 

posted on 2022-02-13 11:13  hanX3  阅读(31)  评论(0编辑  收藏  举报