VIM: Opening some .c files without syntax highlighting

I have some .c files that are not automatically allocated in vim. This problem has only just begun. I did not edit the .vimrc file:

set number nnoremap <F2> :set nonumber!<CR>:set foldcolumn=0<CR> set ignorecase syntax on filetype plugin indent on nnoremap <CH> :Hexmode<CR> inoremap <CH> <Esc>:Hexmode<CR> vnoremap <CH> :<CU>Hexmode<CR> au BufWinLeave * mkview au BufWinEnter * silent loadview set tabpagemax=15 set wrap 

It is strange when I open a file that does not stand out automatically and type :set syntax=C , it works, but if I reload the .vimrc file with :so ~/.vimrc , the highlight disappears. This does not happen with other .c files.

+7
source share
1 answer

Try deleting all the files in ~/.vim/view (in the end, back up before deleting).

+10
source

All Articles