New answers tagged terminal
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! ...
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.
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.*)
...
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.
Top 50 recent answers are included
Related Tags
terminal × 390neovim × 60
vimrc × 49
key-bindings × 43
colorscheme × 42
terminal-buffer × 37
macos × 20
vimscript × 18
cursor × 16
gvim × 15
microsoft-windows × 15
shell × 14
syntax-highlighting × 13
tmux × 12
color × 11
vim8 × 11
external-command × 10
linux × 10
iterm2 × 10
mouse × 9
command-line × 8
buffers × 8
cut-copy-paste × 8
vim-windows × 8
macvim × 7