Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Gvim 中是否可以根据正在编辑的文件的扩展名设置 tablength ?
set tabstop=8 // For *.cpp set tabstop=3 // For *.svh set tabstop=8 // For *.pl
将以下内容添加到您的 vimrc 中:
autocmd FileType cpp set tabstop=8 autocmd FileType svh set tabstop=3 autocmd FileType pl set tabstop=8
哈比