0
Gvim可以根據正在編輯的文件的擴展名來設置長度嗎?Gvim文件擴展名特定的長度
set tabstop=8 // For *.cpp
set tabstop=3 // For *.svh
set tabstop=8 // For *.pl
Gvim可以根據正在編輯的文件的擴展名來設置長度嗎?Gvim文件擴展名特定的長度
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
哈比