sponsor Vim development Vim logo Vim Book Ad

jobs.vim : Run system commands in background.

 script karma  Rating 0/0, Downloaded by 365  Comments, bugs, improvements  Vim wiki

created by
Javier Puigdevall
 
script type
utility
 
description
Tool to be used on other plugins to launch system commands in background.

Includes several commands to check the commands in progress (Jobsl).

Stop all commands in background (Jobska)

Choose wich commands in background to stop (Jobsk)

Showw all commands in background related to current vim window (Jobshw)

Showw all commands history (Jobshy)

Use :Jobsh to show command help.

Example:
   function! svnTools#Blame()
    ¦  let file = expand("%")
    ¦  let name = expand("%:t")
    ¦  let pos = line('.')
    ¦  let ext = s:GetSyntax()

    ¦  let command  = "svn blame -v ".l:file
    ¦  let callback = "svnTools#SvnBlameEnd(\"".l:pos."\",\"".l:ext."\",\"".l:name."\","
    ¦  let l:async = 1

    ¦  call jobs#RunCmd(a:command, a:callback, l:async, "svn")
   endfunction

   function! svnTools#SvnBlameEnd(pos,ext,name,resfile)
    ¦  if exists('a:resfile') && !empty(glob(a:resfile))
    ¦   ¦  " Process the svn blame file
    ¦  else
    ¦   ¦  echo "ERROR. Svn blame empty"
    ¦  endif
   endfunction

 
install details
Minimum version: Vim 8.0+

Simplest method:
- Just unzip to your .vim folder.

Plugin manager:
- Either vim-pathogen or Vundle are recommended.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
jobs_0.1.1.vmb 0.1.1 2021-05-28 7.0 Javier Puigdevall - New: hide passwords, prevent showing command passwords on the command line, instead replace the password with * characters.                                                                                                                                                    
  Use option: g:jobs_hidePsswd to dissable it password hidding.
jobs.tar.gz 0.0..1 2020-06-22 8.0 Javier Puigdevall Initial upload
ip used for rating: 3.90.187.11

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github