Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux shell (bash) on vi's splitview

I've been searching with no results for an integration of bash inside vi, as featured in emacs; the problem is: I have vi open with 2 views, one open with :split command, and I want to use bash through the second view, while I'm editing a file in the first; if I do :sh while editing the second view, the whole session pauses and a bash shell is opened, but I'm not able to edit the file and use the shell at the same time.. I don't want to use !<command> or external programs such as "terminator".. Is there a solution? Thx

like image 390
gc5 Avatar asked Jul 11 '10 12:07

gc5


People also ask

What is $1 and $2 in bash?

$0 is the name of the script itself (script.sh) $1 is the first argument (filename1) $2 is the second argument (dir1)

What doe S $? Mean in bash?

$? - It gives the value stored in the variable "?". Some similar special parameters in BASH are 1,2,*,# ( Normally seen in echo command as $1 ,$2 , $* , $# , etc., ) . Follow this answer to receive notifications.

What does $2 do in bash?

$2 is the second command-line argument passed to the shell script or function. Also, know as Positional parameters.

How do I open multiple windows in Vim?

To open a new VIM window next to the existing one, press <Ctrl>+<w> then press <v>. You can move to the left window again by pressing <Crtl>+<w> and then pressing <h>. To open a new VIM window on the bottom of the currently selected window, press <Ctrl>+<w> then press <s>.


1 Answers

Have you tried looking for third-party Vim plugins? Conque Shell looks like it might do the job.

like image 139
jabirali Avatar answered Sep 28 '22 22:09

jabirali