Hi, I'm seeing an odd behavior in GVIM on windows when editing a network file. I was able to trace the issue to matchparens.vim plugin thanks to this thread by asgeo1: http://groups.google.com/group/vim_use/browse_thread/thread/aafdacab06c6bc06/edbb18e5977c81cd?hl=en&lnk=gst&q=slow+movement#edbb18e5977c81cd
I used SysInternal's ProcMon.exe to see what was happening. Here are the step I took and the results I saw: 1: Open file on network share 2: Disable swapfile with :set noswapfile (just to confirm this isn't the issue) 3: Move with h/j/k/l - verrry slow ~ 500 ms per cursor movement 4: Disable param matching with :NoMatchParen 5: Move with h/j/k/l - normal responsiveness. Next I removed all the code in Highlight_Matching_Pair and re-executed the above test. It still behaved the same - slow cursor movement. It is not the actual code being called in the autocmd as the tests with ProcMon show. Next I restored the original matchparen.vim macro file and just removed the CursorMoved event from the autocmd statement. When re- executing the above test, everything performed as expected - no slowness. Finally, I ran ProcMan and attached it to the VIM process. When performing a cursor movement on a local file, these are the file system functions that get called: (The requested file access mode for the CreateFile has been snipped) CreateFile C:\ SUCCESS QueryDirectory C:\Documents and Settings SUCCESS QueryDirectory C:\ NO MORE FILES CloseFile C:\ SUCCESS IRP_MJ_CLOSE C:\ SUCCESS CreateFile C:\Documents and Settings SUCCESS QueryDirectory C:\Documents and Settings\a249261 SUCCESS QueryDirectory C:\Documents and Settings NO MORE FILES CloseFile C:\Documents and Settings SUCCESS IRP_MJ_CLOSE C:\Documents and Settings SUCCESS CreateFile C:\Documents and Settings\a249261 SUCCESS QueryDirectory C:\Documents and Settings\a249261\.bash_history SUCCESS QueryDirectory C:\Documents and Settings\a249261 NO MORE FILES CloseFile C:\Documents and Settings\a249261 SUCCESS IRP_MJ_CLOSE C:\Documents and Settings\a249261 SUCCESS So my question is: Why does VIM create a file in every directory along the path of the edited file? Secondly, is there a way to disable this behavior? Thanks for reading this far! Please let me know if there is a setting I can change to prevent this behavior. Alternately, if anyone agrees that this is a bug, please let me know if there is a bugzilla I should put this in. -- You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php
