Skip to Content
Modern Vim
book

Modern Vim

by Drew Neil
May 2018
Intermediate to advanced
168 pages
4h 2m
English
Pragmatic Bookshelf
Content preview from Modern Vim
Tip 16Running Programs in a Terminal Buffer
images/neovim-only.png

Neovim can run external processes and capture their output in a terminal buffer. These buffers are displayed in Vim’s windows just like any other buffer. In this tip, you’ll learn how to create a terminal buffer and how to kill the process running within.

Starting Programs in a Terminal Buffer

Let’s start by reviewing some of the methods that Vim provides for running external programs. You can use the :!{cmd} command to execute a command in a shell. To see how this works, use cat to inspect the contents of the /etc/shells file:

=> :!cat /etc/shells
<= # List of acceptable shells for chpass(1). ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Vim Masterclass

Vim Masterclass

Jason Cannon
Mastering Vim

Mastering Vim

Ruslan Osipov

Publisher Resources

ISBN: 9781680506006Errata Page