Quantcast
Channel: How can I emulate :shell command in Neovim? - Vi and Vim Stack Exchange
Browsing all 5 articles
Browse latest View live

Answer by horkhork for How can I emulate :shell command in Neovim?

It should be possible to attach to a tmux session from the terminal, i.e. :term tmux a. I'm not sure how usable it will be, but it's one way to get a persistent shell from neovim.

View Article


Answer by ephemerr for How can I emulate :shell command in Neovim?

My solution for this need of shell integration is to use neovim terminal tab as main shell.I use also skywind3000/vim-terminal-help plugin and drop command to open new files in same instance of vim and...

View Article

Answer by padawin for How can I emulate :shell command in Neovim?

As @statox mentioned, you can use CTRL-z. If you want to spawn a new shell from vim, as :shell does, you can do: :!sh, :!bash, :!zsh (pick your favourite), which has pretty much the same effect as :shell.

View Article

How can I emulate :shell command in Neovim?

There is no :shell command in neovim. :terminal opens a shell without previous output, while :shell contains all the output of the parent shell and all previous shells. Is there any way to emulate...

View Article

Answer by fschlegelone for How can I emulate :shell command in Neovim?

In your init.lua you can set vim.o.shell to the shell binary you're using in your parent shell.For bash that's usually /bin/bash & for zsh /bin/zsh.vim.o.shell = '/bin/zsh -i'

View Article

Browsing all 5 articles
Browse latest View live