Home

Awesome

<h1 align="center"> <img src="https://user-images.githubusercontent.com/113832/46258072-ec2ff480-c4c4-11e8-83d8-5d6b0d199034.png" alt="neojs"> <br> <br> </h1>

Utilites around neovim's :terminal.

One of the coolest feature of neovim is its xterm-like terminal emulator. See :help nvim-terminal-emulator.

One feature that distinguishes Nvim from Vim is that it implements a mostly complete VT220/xterm-like terminal emulator. The terminal is presented to the user as a special buffer type, one that is asynchronously updated to mirror the virtual terminal display as data is received from the program connected to it. For most purposes, terminal buffers behave a lot like normal buffers with 'nomodifiable' set.

This help page also comes with a bunch of tips and recommandation. Indeed, the initial user experience within a terminal Buffer is not perfect:

This plugin aims to alleviate some of these issues, for a better terminal buffer experience.

demo

Install

Install this plugin using your favorite plugin manager, or manually by extracting the files in your ~/.vim or ~/.config/nvim directory.

Plug 'vimlab/split-term.vim'

Commands

Both :Term and :VTerm commands accept a <count> like their :new/:vnew counterparts. You can prefix both commands with a number to specifiy the buffer height / width.

Similar to the original :terminal, both commands accepts any number of arguments. It can be used to spawn a cmd and see the result, or even start a REPL.

Examples

Configuration

splitright/splitbelow options can be used to configure the split buffer orientation.

g:split_term_default_shell - enables shell configuration specific to split-term. It lets vim's shell configuration free to let other plugins that might need it (such as ale or neomake) and works nicely with Windows Subsystem for Linux. Example:

let g:split_term_default_shell = "bash"

g:split_term_vertical - force the :Term command to always use a vertical buffer (using :vnew)

g:disable_key_mappings - disable key mappings of the plugin

Mappings

The plugin remaps specifically a few keys for a better terminal buffer experience. This behaviour can be disabled using g:disable_key_mappings.

Changelog

Unreleased

Commits

v1.0.3 - 2018-09-28

Commits

v1.0.2 - 2018-09-28

Commits

v1.0.1 - 2018-09-27

Merged

Commits


License MIT