문제

Is it possible in Gvim to set tablength according to the name extension of the file which is being edited ?

set tabstop=8  // For *.cpp
set tabstop=3  // For *.svh
set tabstop=8  // For *.pl
도움이 되었습니까?

해결책

Add the following to your vimrc:

 autocmd FileType cpp set tabstop=8
 autocmd FileType svh set tabstop=3
 autocmd FileType pl set tabstop=8

Habi

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top