自由
淡泊以明志, 宁静以致远.
Pages
(Move to ...)
Home
xiaogaozi's Secret Base
▼
Friday, August 15, 2008
Emacs和Vim中将tab转化为空格
Emacs:
在.emacs中添加:
(setq-default indent-tabs-mode nil)
对于已经保存好的文件, 可以选中需要转化的区域, 然后:
M-x untabify
Vim:
在.vimrc中添加:
set expandtab
对于已经保存好的文件, 可以选中需要转化的区域, 然后:
:retab
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment