-> status for latest vim
-> status for latest neovim
Using vim-plug:
Plug 'yogeshdhamija/terminal-command-motion.vim'
Works in both vim, and neovim.
This plugin adds a "terminal command" motion to vim.
yacm
to (Y)ank (A)ll of a (C)o(m)mand in a terminal buffer
...and associated commands like 3cm
, 2CM
, yicm
, etc.
See :h terminal-command-motion.txt
for details (or check the /doc
folder).
You must set g:terminal_command_motion_prompt_matcher
(see :h g:terminal_command_motion_prompt_matcher
).
This is the search (vim regex enabled) that will be used to find your terminal prompt. Example:
let g:terminal_command_motion_prompt_matcher = 'prompt\$'
Locally, run:
./test.sh
In docker, run:
docker build . -t testing_terminal-command-motion.vim && docker run testing_terminal-command-motion.vim