News for hackers. Stuff that matters.
Re:Do You Understand Job Control in Bash? by sophacles on Thursday September 02, 2010 @04:31PM (#1657549)
One thing I do a lot, inside of a screen session, is:

  $ cd workingdir
  $ vim conffile
  (edit, then within file press CTRL-Z, which suspends)
  $ start_program
  (notice errors or misbehaviours based on bad config)
  $ fg
  (edit config file some more, open different buffer)
  ** repeat untill things are happy **
This is a minimal use of job control, but it is nice.

Other uses include juggling several programs at once, sometimes screen gets too annoying for simple progress monitoring of several processes at once. (One window per command for say 20 commands, makes it difficult to switch through to find the one vim one, or the sql prompt... 3 on the other hand is fairly easy).

Re:Do You Understand Job Control in Bash? by johkra on Thursday September 02, 2010 @05:21PM (#1657728)
You can also use :!command to execute a command from within vim. This is handy to execute :!make for instance.
Re:Do You Understand Job Control in Bash? by sophacles on Thursday September 02, 2010 @07:20PM (#1658092)
A lot of times yes, but others, the actions i simplify to "run process" are actually several commands based on output, to do things like verify side effects, etc. The scenario I describe is also very nice for developing shell scripts because of this.
Re:Do You Understand Job Control in Bash? by jallmann on Thursday September 02, 2010 @05:29PM (#1657752)
Actually in that case, just :make will suffice.
Re:Do You Understand Job Control in Bash? by nitrogen on Thursday September 02, 2010 @09:57PM (#1658358)
You can also use :sh to get to a shell, then type exit to get back to Vim.