我的 .vimrc 中有这一行:
au 文件类型 python set colorcolumn=80
我希望当我切换到非 Python 缓冲区时颜色列消失。有办法实现吗?
最佳答案
使用 setlocal 将其设置为您想要的缓冲区。
au filetype python setlocal colorcolumn=80
也可以简写成setl
au filetype python setl colorcolumn=80
关于vim - 切换到任何其他文件类型时取消设置文件类型选项?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31183945/