Set vim updatetime for a specific file type -
I want to modify This does not seem to work when I open a file with the You can work with AutoComed on it, as you have tried, however, updatetime for vim for files with specific extensions. I have tried to complete the following code by adding the following code to my
~ / .vimrc :
Autocommed bufferide, buffanfile * .t set uptaid time = 60000 < / Code>
.t extension and
: set ut? I see the default
updatetime = 4000 .
'updatetime' setting is a global setting, it means different Do not assume why you want a different price for different buffers?
BufRead, BufNewFile event will only happen if a buffer is loaded; This setting will not update as you switch buffers, the correct method is to define two autocmds on
BufEnter ; To reset a normal one setting, and (after that, it has been executed after the first time!) That matches your file pattern and organizes the settings:
Autocmd BufEnter * set updatetime = 4000 Autocomedged buffent * .tet set uptime = 60000
Comments
Post a Comment