Skip to content

Instantly share code, notes, and snippets.

@rderik
Last active February 9, 2018 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rderik/781faf9d57b138484ba9b980fd9e8c51 to your computer and use it in GitHub Desktop.
Save rderik/781faf9d57b138484ba9b980fd9e8c51 to your computer and use it in GitHub Desktop.
Vim Terminal Integration Cheat Sheet #vim
#Enter command mode
<C-w> :
#Enter Terminal Normal mode , then press i to go back
<C-w> N
# Close window without stopping the job
<C-w> :hide
#view buffers
:ls
# Send keys strokes
:call term_sendkeys([buffer_number],[keys])
#To have a background job run without a window, and open the window when it's
done, use options like this:
:term ++hidden ++open [command]
Reference: https://vimhelp.appspot.com/terminal.txt.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment