Hello all,

I use gvim in Ubuntu 10.10. Yesterday I have been editing a Python
file, I have made some changes to it but closed the program without a
save. Today, upon opening the same file I got a message that the swap
file already exists and whether or not I want to recover it. I clicked
YES, to recover the changes I did not save yesterday. The problem is
that now the syntax highlighting is gone. When I open other Python
files located in the same directory syntax highlighting is on. I
deleted all swap files from the current directory, moved the contents
of the problematic file to filename_temp.py, saved it, and the quit
gvim. Then, in the command window I type gvim filename_temp.py and I
get syntax highlighting, but when I rename that file to filename.py,
the original name of the file,
I still do not get the syntax highlighted. How can I fix this problem?
How can I get syntax highlighting back in the original file? I have
tried issuing ":syntax on" but without success.

Thanks.

-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Reply via email to