Skip to content

Terminal Buffers #24

@pbnj

Description

@pbnj

Vim's built-in :help i_CTRL-N suggests word completions from buffers, including the terminal buffer.

This allows users to run any shell commands in a vim terminal (e.g. :term {command}) and use the output as completion suggestions.

Consider the following examples:

  • :term cargo check/:term cargo clippy or :term go doc {pkg}
  • :term ddgr or :term googler (combined with BROWSER=$(which w3m || which lynx) allows you to search DuckDuckGo or Google respectively and open search results in terminal browsers in vim terminal buffers and get word completion in other buffers in vim. Here is a quick gif demo of this workflow:
    demo

Is it possible to provide word completion from terminal buffers with asyncomplete-buffer.vim?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions