开发者

Why does vi keep replacing text?

开发者 https://www.devze.com 2023-03-10 16:34 出处:网络
How do I stop vi from replacing t开发者_运维百科ext while typing? For example, in a groovy file when I type \"pl\" vi replaces it with \"println\".Have you checked the .vimrc file? It might have the r

How do I stop vi from replacing t开发者_运维百科ext while typing? For example, in a groovy file when I type "pl" vi replaces it with "println".


Have you checked the .vimrc file? It might have the replacements there. I googled it for you and came up with this result, which might be more complete than you want.


It happens due to abbreviations, which apparently cannot be disabled easily. Per the vim users mailing list, I've added the following to my .vimrc:

autocmd FileType * abc

0

精彩评论

暂无评论...
验证码 换一张
取 消