Skip to main content
replaced http://vi.stackexchange.com/ with https://vi.stackexchange.com/
Source Link

Thanks to @muru@muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

deleted 344 characters in body; edited title
Source Link
whitesiroi
  • 555
  • 3
  • 8

How to run custom console command and output results to QuickRun without pressing any key on keyboard?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Also, how can I run vim-rooter's function FindRootDirectory() instead of /vagrant/my_project? I have tried multiple variations like:

set makeprg=FindRootDirectory().'/app/Console/cake test '.expand('%:p')

set makeprg=FindRootDirectory()."/app/Console/cake" test %:p

How to run custom console command and output results to QuickRun?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Also, how can I run vim-rooter's function FindRootDirectory() instead of /vagrant/my_project? I have tried multiple variations like:

set makeprg=FindRootDirectory().'/app/Console/cake test '.expand('%:p')

set makeprg=FindRootDirectory()."/app/Console/cake" test %:p

How to run custom console command and output results to QuickRun without pressing any key on keyboard?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Source Link
whitesiroi
  • 555
  • 3
  • 8

How to run custom console command and output results to QuickRun?

Thanks to @muru I was able to run and output the data to QuickRun by the :make command and this setting in my .vimrc:

set makeprg=/vagrant/my_project/app/Console/cake\ test\ app\ Console/Command/FeedParseShell

But I have to press Enter several times to get back to the vim editor and open the output by typing :copen. Is there a way to skip this steps and get the output without typing :copen?

Also, how can I run vim-rooter's function FindRootDirectory() instead of /vagrant/my_project? I have tried multiple variations like:

set makeprg=FindRootDirectory().'/app/Console/cake test '.expand('%:p')

set makeprg=FindRootDirectory()."/app/Console/cake" test %:p