Questions tagged [shell]
Question about the functionality that let Vim interact with shell command typically triggered Cia the :! command.
101 questions
4 votes
1 answer
334 views
Prevent output of a shell command from staying in the terminal
Suppose we did something like: launch vim with $ vim --clean execute a shell command :!echo "hello" After step 1, if we exit Vim the terminal will contain: $ vim --clean $ However after ...
1 vote
2 answers
198 views
Sourcing node in vimrc
I'd like to use coc.nvim for completion. However, this plugin requires the JavaScript runtime Node.js. Installing Node.js adds the following code to the shell rc file, (in my case .zshrc): export ...
4 votes
1 answer
603 views
How do I open the current file in the default application using Neovim?
In the terminal, I can open a file with its default application using this command: open example.txt In some Linux systems, I need to use xdg-open instead of open, like this: xdg-open example.txt ...
0 votes
1 answer
244 views
Neovim not loading User-level shell (bash) profile when running on a remote server
I installed Neovim on a remote server. Everything runs fine, except that among the very few plugins I use, Telescope does not work properly since it does not find the rg (ripgrep) command. Two ...
1 vote
0 answers
80 views
`term_start` fails to have `-m` option for shell like bash when using the shell path to invoke
I uses vim 9.1 shipped with bash 5.2.26(1)-release (x86_64-pc-msys) both installed by git-bash. :h terminal-use says :term will start one "terminal emulator" and ran the job. Then when I ...
1 vote
1 answer
106 views
Getting buffer name in a shell script
I have a shell script meant to run within vim. I'd like it to insert the name of the file I'm editing but I can't figure out how to do it. Is there a way to, perhaps, call bufname() from within a ...
2 votes
1 answer
1k views
Using the WSL terminal with Neovim
I have Neovim installed on Windows. I use WSL for running Python and C code. So I'd like to map a key to get Neovim to run a shell command in WSL directly from the Neovim editor. But I seem to be ...
0 votes
0 answers
142 views
Shell commands in Vim vs. Neovim?
When I run a shell command in Neovim like :!ls the results come up in a little minibuffer. In Vim, the Vim instance is temporarily closed and the results are printed to the terminal without my ...