Say I am working on parsing very big data files (each file has approximately several megabytes). I want to write parsing code with seeing these data files, so I have several windows in Vim, some are code files and some are data files.
In this case, Vim word completion in the insert mode is extremely slow because it tries to scan the data file. To avoid this situation, I want to ignore these data files which have non-program extension (e.g. dat, txt instead of c, rb, py), but keep watching program files. So the best case is that I can register some extensions for ignoring during word completion.
How can I achieve this? I looked at h: 'complete' but I could not find what I want to do. For example, set complete-=w in .vimrc does not satisfy me because it ignores not only data files but also program files, which completely spoils word completion.
Thank you for your help.