New answers tagged

0 votes
Accepted

How to keep focus in the "normal" editing buffer while a terminal buffer is opened and running a command?

After the terminal buffer is opened, you can switch back to the previous window with the keys <C-w>p. For non-interactive use (such as in a script), you may append those keystrokes with :normal! ...
user avatar
  • 1,373
0 votes

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.
user avatar
1 vote

terminal and ssh-agent/ssh-key

I have a little ssh-reagent function in my zshrc: # Restart ssh-agent after restarting WM or x11 (may be old env var in tmux). ssh-reagent() { export SSH_AUTH_SOCK=$(echo /tmp/ssh-*/agent.*) ...
user avatar
0 votes

terminal and ssh-agent/ssh-key

This does not exactly answers the question as it is, but it provides a work-around. In a shell, run eval `ssh-agent -s` ssh-add vim The ssh-agent will be effective from within vim.
user avatar

Top 50 recent answers are included