Chip,

Thanks for your response. I downloaded v103f and tried it. It didn't seem to help. After much experimenting I found that if I enabled filetype indent in my .vimrc, the problem with cindent goes away, as :verbose setl cindent? now reports last set by the Java indent file. I don't understand why, but it works.

But I still see an issue with the swapfile option being turned off by netrw. To test, I unset my HOME environment variable to eliminate my .vimrc and all my installed plugins. Then when I repeat the 2 scenarios from my original post, noswapfile is set and :verbose setl swf? reports noswapfile last set by netrw.vim.

BTW, I'm running GVim on XP.

-Mark


Charles E Campbell Jr wrote:
Mark S. Williams wrote:

I think I've uncovered an odd bug involving Netrw and the cindent local buffer option for Java files, where cindent is unset under certain conditions.

I'm afraid that I don't see this problem; I tried both your examples. Please try v103f from my website:

http://mysite.verizon.net/astronaut/vim/index.html#VimFuncs , see "Network Oriented Reading, Writing, and Browsing".

If this problem continues to occur, then its likely some setting or other plugin is interfering (the latter most likely via an autocmd).

Regards,
Chip Campbell


Reply via email to