asyncrun.vim
asyncrun.vim copied to clipboard
Focus when invoking tail -f
Hello
I would like to start tailing a log file but I can't exist the quickfix anymore. I also tried the option -focus=0 but it still switches to that quickfix. How can I prevent switching to quickfix?
:AsyncRun -mode=term -pos=bottom -rows=5 tail -f /$HOME/payara5/glassfish/domains/domain1/logs/serv
er.log
Best Regards, Ali
Hello
I would like to start tailing a log file but I can't exist the quickfix anymore. I also tried the option -focus=0 but it still switches to that quickfix. How can I prevent switching to quickfix?
:AsyncRun -mode=term -pos=bottom -rows=5 tail -f /$HOME/payara5/glassfish/domains/domain1/logs/serv er.log
Best Regards, Ali
The only way to get back to vim focus is to press ctrl-c(stop tailing process)
When using -mode=term
, the command will run in an internal terminal buffer, not quickfix window.
<c-\><c-n>
can be used to exit terminal mode and switch to terminal normal mode where you can switch window by <c-w>w
.
For more information, please see: :h terminal
.
For quickfix window, just watch your log by :
:AsyncRun tail -f record.log
And stop watching by:
:AsyncStop