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
$0 is the name of the script itself (script.sh) $1 is the first argument (filename1) $2 is the second argument (dir1)
$? - 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.
$2 is the second command-line argument passed to the shell script or function. Also, know as Positional parameters.
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>.
Have you tried looking for third-party Vim plugins? Conque Shell looks like it might do the job.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With