Hi, Gary Johnson wrote: > > Despite those issues, Jürgen's original version of that autocommand > worked fine for me, so I think Jim's problem with it lies elsewhere. > > This is what I did. > > $ vim -N -u NONE > :set cursorline > :au FileType QF nmap <buffer> <cr> <cr><c-w><c-p> > :grep PATTERN * > :cw > > where PATTERN is a string I knew would be found in some files in the > current directory, and 'cursorline' is set to more easily see the > cursor movement in the top buffer.
I tested this on Windows, and I seem to rembember (now) that the case of the file type is not relevant here. Regards, Jürgen -- Sometimes I think the surest sign that intelligent life exists elsewhere in the universe is that none of it has tried to contact us. (Calvin) -- 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