marc wrote:
Strange this. My gvim 7 setup on XP has been working fine for as long as v7 has been available. I'm currently on 7.0.178.

Other than that described below, gvim is working fine. If I never load _vimrc, then nothing appears to be wrong.

The symptoms are that when I load _vimrc into a buffer, and _vimrc contains

  syntax on

then vim hangs. The vim window displays (the GUI opens), but the vim window is empty, although the status line shows the file and 1L, 11C. Since I'm now testing with a _vimrc containing only

  syntax on

it appears to 'stuck' at EOF. When I try the same with my regular _vimrc, vim gets stuck at 158L, 6028C, which is also weird (although the line count it fine).

The swp file is created in these scenarios. Looking at the process monitors, it is not consuming any resources once it hangs.

I have tried deleting _vimrc and recreating it (with vim). but as soon as I save it with the 'syntax on' line and reload it, it hangs.

If I comment out the 'syntax on' line and load vim, then all is well - including editing _vimrc. However, I then need to set 'syntax on' manually. This works okay. However, if I do this, then later load _vimrc, vim hangs.

Finally, I tried a clean install on another machine and the same thing happens - although it previously contained a copy of currently broken setup.

Any ideas?


Here are a few "ideas". Nothing precise yet, just a few hints.

By "loading" the vimrc, do you mean ":source ~/_vimrc" or ":edit ~/_vimrc"?

When Vim appears to hang:
- does it beep if you pess Esc repeatedly?
- If it does, then does something happen if you hit Ctrl-L after the beep?

If you load Vim without a vimrc (using "vim -u NONE"), what does it reply in answer to:
  :echo $HOME
    is that the directory where your _vimrc is located?
  :echo $VIM
  :echo $VIMRUNTIME
is that your installation directory, containing files such as filetype.vim, vimrc_example.vim, menu.vim, and directories such as plugin/, ftplugin/, syntax/, doc/ etc.?
  :scriptnames
    there should be really few of them

What are the size in bytes, timestamp and version of "$VIMRUNTIME/syntax/syntax.vim"? (with $VIMRUNTIME as seen above)

Does your vimrc set a colorscheme? If it does, does it change something if you comment-out the ":colorscheme" line?


Best regards,
Tony.
--
"A witty saying proves nothing."
                -- Voltaire
.

Reply via email to