Zimfw: vim command resuming the background process instead of starting a new one

Created on 14 Aug 2020  路  5Comments  路  Source: zimfw/zimfw

Please check the existing issues to make sure you're not duplicating a report.

For bug reports, please provide the following information:

In a terminal, run zimfw info and paste the output below:

#Paste the output here
Latest zimfw version is 1.3.2. You're using version 1.2.1. Run zimfw upgrade to upgrade.

zimfw version: 1.2.1 (previous commit is c0d7862)
ZIM_HOME:      /Users/vikrampal/.zim
Zsh version:   5.7.1
System info:   Darwin Vikrams-MacBook-Pro.local 19.5.0 Darwin Kernel Version 19.5.0: Tue May 26 20:41:44 PDT 2020; root:xnu-6153.121.2~2/RELEASE_X86_64 x86_64
  • gist of .zimrc:
    Default
  • gist of .zshrc:
    Default

Description

If there is a vim process suspended in the background like this:
[1] + 1184 suspended vim

On entering the vim command again, the background process is resumed instead of starting a new process.

Steps to reproduce

Open a vim process. Suspend it using Ctrl-Z. Then again type vim at the prompt. The background process is resumed instead of starting a new one.

Images or other information

Most helpful comment

I too always use fg but agree that the default should be changed to make the foregrounding an explicit operation (vs an implicit same-binary fg).

All 5 comments

Can you confirm disable zim to ensure it is what's doing this. I don't think it does anything that should case this behavior.

This is a feature of Zsh that we enable in the environment module:

  • AUTO_RESUME resumes an existing job before creating a new one.

You can add setopt NO_AUTO_RESUME at the end of your .zshrc file to disable this.

Thanks, it worked.

@Eriner, what do you think about removing the AUTO_RESUME option from the environment module? I never used this one (was doing fg instead), and I'm not sure how intuitive it is to be considered a "sane default".

I too always use fg but agree that the default should be changed to make the foregrounding an explicit operation (vs an implicit same-binary fg).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ALipAkrohk picture ALipAkrohk  路  3Comments

Brottweiler picture Brottweiler  路  6Comments

linhvng picture linhvng  路  9Comments

sQVe picture sQVe  路  13Comments

sodiumjoe picture sodiumjoe  路  7Comments