Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [terminal-buffer]

The tag has no usage guidance.

0
votes
1answer
17 views

In Vim 8.1, “:term ipython” gives a different version of IPython than typing “ipython” on an already open terminal

When I open a Gnome terminal in my Ubuntu 18 and execute the command ipython, I start an Anaconda IPython terminal version 5.8.0. Within Vim 8.1, that is what I also get if I first open a Vim terminal ...
2
votes
1answer
49 views

Unmapping the global mappings on a per-buffer basis

I have the following mapping in tnoremap <Esc> <C-\><C-n> init.conf to exit insert mode while in the terminal. In certain terminal buffers I would like to not have that global ...
1
vote
0answers
24 views

Execute command in terminal mode at terminal startup

I'm trying to execute simple commands in the vim terminal mode, but cannot get it to work. For example, I tried nmap <F12> :let $VIM_DIR=expand('%:p:h')<CR>:terminal<CR>cd $VIM_DIR&...
0
votes
1answer
24 views

Start a new terminal instance if window splitting was initiated from a terminal buffer

When I'm in the terminal and I press CTRL + w + s the screen is split vertically and the terminal buffer is showed twice. Then I have to do :terminal if I want an independent instance. Typing ...
1
vote
1answer
38 views

Commands history for vim commandline and :terminal [closed]

I want a way in which we can access a history of commands in terminal mode (and Vim/NeoVim's internal command line), just like in a normal bash terminal; i.e. if I press the up key it will scroll ...
0
votes
0answers
27 views

Why termopen() deletes the currently opened buffer?

for example, if I have 3 opened buffers listed like this: :ls! 1 "deleteme/test1" line 1 3 # "deleteme/test2" line 1 4 %a "deleteme/test3" line 1 ...
1
vote
1answer
45 views

Execute visual selection/current line in Vim terminal via keymap

How can I create a keymap to send the visual selection/current line to a vim terminal window? I opened a normal vim window (containing only the line echo test) and a vim terminal window and tried ...
0
votes
1answer
41 views

How to make vim/nvim to not show the “[Process exited {num}]” when quitting a term?

When quitting the terminal it always shows the [Process exited 2], how can I disable it so that when I quit the terminal buffer should just close silently?
0
votes
2answers
134 views

How could I adjust terminal height

I like to use the vim embedded terminal, but I do not know how I could adjust its height. Sometimes, I need it to be lower so that I could concentrate on my editor how could I adjust it ?
1
vote
2answers
210 views

Opening :terminal window in new buffer

When I type :terminal to vim8.1, it splits the window and I use it split window. I want to open a new buffer and open the terminal inside it. Basically, like neovim's terminal emulator. Is there a way ...
0
votes
1answer
67 views

In Vim, how to tag/enrich buffers with custom information (that persist naturally)

Gday, I am trying to persist some state about my buffers, specifically terminal buffers, over vim sessions with :mksession through the plugin 'vim-session' by xolox. The goal is to assign labels to ...
1
vote
1answer
78 views

Change the terminal emulater neovim uses

Is there a way to change which terminal emulator neovim uses for its :terminal command? I am running neovim on Windows 10, and it used cmd by default; however, I would rather use cmder or another ...
0
votes
0answers
31 views

could I open a terminal in the quickfix window instead of in a buffer?

I could use :ter to create a terminal in the vim window, but it seems to be opened in a buffer, and I could see the title of this terminal buffer if I use air-line. I wonder if I could open the ...
0
votes
1answer
26 views

How come the splitted window failed to update its shapes along with the whole window

By the normal mode command :vs, I split the current buffer into two equally sized buffers. Then I resize the whole terminal window and only find the left portion of the screen remains the same as ...
0
votes
1answer
675 views

How could I create a terminal at the bottom

I could create a terminal with vim by running :term in the vim normal mode. However, this terminal is opened at the top of the window and I would like to open it in the bottom. How could I open it at ...
1
vote
2answers
219 views

Switching buffers in VI while skipping any terminal in VI 8.1

I am using multiple files within the same tab and when I switch buffers using :bn I reach the terminal, at which point I have to issue the command again to move. Here is the catch, I am using keymaps ...
1
vote
0answers
180 views

Use :terminal to display file with ansi escape codes

I want to display a file in Neovim with ansi terminal escape codes interpreted. I created a file which contains ansi escape codes (only colors for now, we can think about others as a bonus): echo '\...
1
vote
2answers
103 views

Running vim's ':make' using ':term'

Is there a way that I can have the :make command output itself to a terminal window in vim? In the 8.1 release, they added the :term command, which allows you to run an external program in a vim ...
7
votes
2answers
154 views

How to capture errors from make in terminal window

Vim 8.1's release note seems to indicate that you can feed output from make running in a terminal window to a quickfix list, but I couldn't find any detailed explanation. Is there a way to do this ...
1
vote
3answers
206 views

How to redirect terminal output to vim or get `vim like` behaviour in terminal output [closed]

How to get vim keybindings at terminal output so I can navigate/operate at terminal output like in vim or get smooth shell command processing in vim. For example I type: ifconfig an i want to make ...
2
votes
1answer
141 views

Vim Session keeping terminal state

I am currently using tmux to have two terminals on the left and vim on the right. One terminal is running Django server, and the other one is for general usage. I am trying to find out if I can ditch ...
0
votes
2answers
290 views

How to switch between buffer and terminal (cmd windows)

I have a vim's buffer and a terminal in the same vim's window but each time switch to terminal I can only exit it to go back to vim's buffer, Is there a way to keep terminal session but be able to ...
5
votes
1answer
69 views

make :terminal use the current pane

Currently when I use :terminal to quickly open a terminal in vim, it opens in a new pane. Is it possible to change this behaviour so that it replaces the current one? I realise this would be ...
1
vote
0answers
30 views

How to execute (using bash) a buffer with line continuations (\)?

In vim8, you can do: :. term to send the current line to execute in your terminal's shell (e.g., bash). But how, in normal and ex mode, do you execute a single line that contains line ...
4
votes
1answer
443 views

Is it possible to change the statusline color in Vim 8 terminal windows?

I would like to change the default green terminal statusline below to my usual colorscheme statusline color: Is this possible? There is no mention of it in :h terminal.
0
votes
2answers
282 views

neovim: how to close the terminal buffer by just pressing enter?

NVIM v0.2.2 Build type: Release LuaJIT 2.0.5 Compilation: /usr/local/Homebrew/Library/Homebrew/shims/super/clang -Wconversion -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_MSGPACK_HAS_FLOAT32 -...
0
votes
0answers
54 views

Get the current running program in command-line mode with Vim8

I want to rename the current buffer to have the current running program. Show the running program in the statusline like this : /usr/bin/zsh;#neoterm-2 [bin/rails console] The current buffer name ...
1
vote
1answer
41 views

How to write a buffer which isn't the current to a temp file?

I would like to write a buffer which isn't the current buffer to a temp file. I have found two ways to do this: (assuming buffer 42 is the one to be written) Either use writefile(): call writefile(...
1
vote
1answer
465 views

What can Neovim/Vim's :terminal do that tmux can't?

I've been using tmux for a while, and recently tried :term in Neovim for a few days. Aside from some small trivial differences, it seems mostly the same to me? What is the advantage of using :term? ...
0
votes
1answer
94 views

Neovim - Map selectively only on a terminal window

I like the terminal in neovim. I am accustomed to tmux and tmux's copy-mode, and type q to exit copy-mode to return back to regular-interactive-mode. Now, in neovim, when in NORMAL mode (which is akin ...
0
votes
1answer
62 views

How can I prevent some buffers from being reachable using bnext, bprev? [duplicate]

I'm using a combination of buffers and splits. What I want is for :bnext or :bprev (or some equivalent) not to open buffers that are already opened in some other split or tab. Is this possible?
3
votes
2answers
1k views

How to close and and delete terminal buffer if programs exited?

I'm trying to modify test runner plugin to do the following: When running test show a window with them (that part is already covered by the plugin) After all tests are done if there is no errors hide ...
1
vote
1answer
343 views

How to change buffer name for NeoVim Terminal special buffer

If I execute a interactive command with :terminal, buffername will be something like: term://.//1234:command executed here with params. I want to be able to change it to something more meaningful to ...
1
vote
1answer
160 views

How to remove lines matching pattern in all files changed in one editing session?

I'm trying to create function and a mapping to insert/remove breakpoints in python code. So far I got this function! AddBreakPoint() let l:line = line('.') let l:indentChar = ' ' call ...
5
votes
1answer
269 views

Why do terminal buffers get deleted in Neovim

My terminal buffers get deleted automatically when I switch to a different buffer. Is that supposed to happen? It's really annoying. Is there a way to prevent this?