Hello,
pardon my chaotic question, but does anybody have an idea, why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64 with a CTRL-Z, then execute few commands at my bash prompt and then get back to the vim session again with "fg"?
It has stopped working at my CentOS 6.2 machine (I haven't noticed exactly when) but works fine with CentOS 5.x.
I'm using PuTTY to login to both. The error message I get is:
afarber@www:~> fg sudo vim test.pl ~ [1]+ Stopped sudo vim test.pl
(and nothing comes up)
Thank you Alex
On Sat, May 26, 2012 at 1:56 PM, Alexander Farber alexander.farber@gmail.com wrote:
Hello,
pardon my chaotic question, but does anybody have an idea, why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64 with a CTRL-Z, then execute few commands at my bash prompt and then get back to the vim session again with "fg"?
It has stopped working at my CentOS 6.2 machine (I haven't noticed exactly when) but works fine with CentOS 5.x.
I'm using PuTTY to login to both. The error message I get is:
afarber@www:~> fg sudo vim test.pl ~ [1]+ Stopped sudo vim test.pl
(and nothing comes up)
Please see:
http://bugs.centos.org/view.php?id=5740
Akemi
-----Original Message----- does anybody have an idea, why can't I suspend vim-enhanced-7.2.411-1.6.el6.x86_64 with a CTRL-Z, then execute few commands at my bash prompt and then get back to the vim session again with "fg"?
If you just need to jump out to the bash shell and execute a few commands, why not use the 'shell' command that is part of Vi/Vim?
Press the ':' key to get to the Vi ':' prompt, then type 'shell' and press return. This spawns a subshell, running your shell CLI, where you can execute the commands you wanted to run.
To return to the Vi/Vim parent process, just type 'exit' at the shell's command prompt to close the session and return to Vi/Vim session.
Works across most Linux and UNIX platforms, with both 'vi' and 'vim'
Cheers!
Simba Engineering