Vi and Vim Asked on January 1, 2022
Vim language highlighting has quit working only for one specific file.
I’ve been using Vim in WSL (Ubuntu) for several months now without problems. My PC is Windows 10 Professional. Strangely, Vim is no longer highlighting properly when I open a particular file.
Everything works fine with every other file, but if I open this one file, it does not display correctly. The syntax highlighting is gone. Line numbers, tabs, and end-of-file-tildes still follow the color scheme, but my actual code is simply colored white. Does anyone know how to fix this?
More details:
*.v
vimrc
before the problem arose.apt-get update
and apt-get upgrade
, followed by a restart.Nothing I tried worked. Any ideas or insight would be greatly appreciated. Thanks!
Thanks for all the suggestions!
I found a bunch of files under ~/.vim/view/
which seemed to provide file-specific configurations for all my source files. So I deleted the one that linked to my problematic Verilog file. It regenerated when I reopened the source file in Vim. Everything displays correctly now. The problem must have been that an auto-generated config file got corrupted somehow.
Answered by Eli on January 1, 2022
1 Asked on August 31, 2021 by codetalker
1 Asked on August 31, 2021 by ostrov040
1 Asked on August 31, 2021 by vjekoslav
0 Asked on August 31, 2021 by shaik-azar-azarmadr
1 Asked on August 31, 2021 by vladislavthepoker69
0 Asked on August 31, 2021 by wallace-coelho
eslint filetype javascript filetype typescript plugin ale vimrc
2 Asked on February 13, 2021
1 Asked on February 6, 2021
1 Asked on February 5, 2021 by connie-jash
Get help from others!
Recent Questions
Recent Answers
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP