On Friday, October 10, 2014 3:31:24 PM UTC-5, David Fishburn wrote: > 7.4.1-466 Windows 7 32 bit > > > I have a plugin with formats some code. > > > But in order to format it, it has to parse it. > During the parsing, it can report errors. > > > I want to basically open the quickfix window and give the usual output you > would usually supply with a :make. > > [snip] > > Here are the actual commands I am executing: > > setlocal nowrap > setlocal noswapfile > setlocal nonumber > setlocal bufhidden=wipe > > setlocal errorformat=%f,%l,%c,%m > > setlocal filetype=qf > <paste the text> > > myfile.txt,3,134,some error message > > setlocal nomodified > > > Do I just have the errorformat wrong (it is a pretty simple one in this > case), which is stopping this from working or something else? > >
I think you actually need to use :cfile, :lfile, or similar to actually parse the file into a quickfix list. > Also, assuming I get my new buffer to turn into a quickfix window properly, > when I hit enter on the line, the filename is "myfile.txt" does Vim just look > for an already open buffer with that name and switch to it or do I have to > link this new quickfix buffer to my already open buffer? > What to do when Enter is pressed depends on the 'switchbuf' option setting. Either a new buffer will be opened with the file, or an existing buffer will be used. -- -- 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 --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
