Questions tagged [terminal]

A terminal emulator (or terminal, for short) displays characters, colours, and the cursor on the screen. Vi & Vim are run inside of a terminal, gVim is not.

Filter by
Sorted by
Tagged with
0
votes
1answer
26 views

Hide terminal buffer from buffer list

How do I keep the terminal buffer from showing up in my airline list of buffers? I assume airline just pulls buffers from what normally shows up in :ls. But I actually don't want the terminal to show ...
1
vote
1answer
53 views

How to enter normal mode while in terminal buffer?

Recently I found out that vim has added the :terminal command which opens a terminal buffer within vim, however I see no way to enter normal mode so that I can move around and copy things. Neovim has ...
4
votes
1answer
55 views

Pressing Shift-Backspace in insert mode types '^?' instead of backspacing

When I mess up typing an uppercase letter, I usually hold Shift while pressing the Backspace. Instead of backspacing, it types ^? (to my frustration). Google tells me that ^? is the "delete" ...
1
vote
1answer
43 views

How to send messages from terminal to Vim using the JSON API?

Vim 8 built-in terminal allows communication to and from a running job. The manual describes a terminal API :h terminal-api that lets a running job to Vim. An example message is provided to open a ...
1
vote
1answer
99 views

vi background color wrong on Windows 10 1903 WSL Terminal

After upgrading to Windows 10 1903 (18362.175), in Window Subsystem for Linux (WSL) Ubuntu 18.04, the background color is always set to black when scrolling backward in vi, vim, man and maybe some ...
0
votes
1answer
52 views

Neovim-Qt: environment variable TERM not set

Running :checkhealth in NeoVim-Qt (v0.3.5) I get the following report on terminal: ERROR: command failed: infocmp -L infocmp: environment variable TERM not set How can I set the environment variable ...
2
votes
3answers
68 views

Apply terminal colors in gui?

I am on neovim with Oni. vim-netranger plugin uses terminal colors in this format to highlight things. It does work in terminal with neovim , but not in a gui app. I am looking for a way to replace ...
0
votes
1answer
55 views

How to copy paste from a vim split text to terminal

I open vim and have the following code: 1 a = range(10) 2 for b in a: 3 print(b) I then open an ipython within vim by typing: :term ipython I yank the code by doing :1,2y and then go over to ...
3
votes
1answer
77 views

Vim 8 terminal change width

Suppose I run :terminal someprg_wide_output the output is wrapped by current terminal window size wrapped hard way, so :set nowrap there can't help When I run same program not from vim like this: ...
1
vote
0answers
36 views

use pipe symbol in vim :term command [duplicate]

recently i stumpled over vim :terminal mode. i am really exited about that. now i wanted to ask, how i can create a mapping, which sends a command, including a pipe symbol to :terminal? it should look ...
1
vote
1answer
94 views

What's wrong with “terminal cd .” in vim 8.1?

terminal cd . result in following weird error in the terminal buffer: executing job failed: No such file or directory The same error appears for term_start('cd .'). It doesn't matter which directory ...
0
votes
2answers
59 views

How to copy file and line info from vim to gdb?

For setting breakpoints, I was wondering if there is any way to copy the location of a line in a file opened in vim, to gdb rather than typing the whole file path and linenumber in the gdb shell?
1
vote
0answers
21 views

VimEnter autocmd to change cursor shape sometimes outputs escape sequences

Inspired by this answer, I have the following in my vimrc: augroup cursor au! autocmd VimEnter * silent !echo -ne "\e[1 q" augroup end However, this sometimes prints the following on startup:...
0
votes
1answer
53 views

what does “\033]110\007\033]111\007” mean

I found this snippet online which is apparently a way to make vim a little faster if your terminal background is the same as what vim's is meant to be (right?) " General colors if has('gui_running') |...
0
votes
1answer
99 views

How can I emulate :shell command in Neovim?

There is no :shell command in neovim. :terminal opens a shell without previous output, while :shell contains all the output of the parent shell and all previous shells. Is there any way to emulate :...
2
votes
0answers
55 views

How do I make vim's terminal use my emulator's cursor shape?

I am using ibeam a.k.a vertical bar cursor right now. When I switch to terminal mode in vim, it changes the cursor shape to block - but doesn't restore it after I quit the terminal. I tried changing ...
1
vote
1answer
177 views

Is it possible to change the default terminal of Vim?

I'd like to change the default terminal of Vim from cmd to cmder. By using :help :terminal I have read the terminal.txt but it seems that there is no setting instruction in that help file. So is it ...
0
votes
1answer
37 views

Ex command to put value of variable into terminal emulator?

Using a terminal emulator (with :term), I would like to insert the value of a variable at the terminal cursor. In a normal text buffer, I could use put =g:my_variable or exec ("normal! i" . g:...
1
vote
2answers
173 views

neovim key remap specific to terminal buffer

I have been using nvim terminal mode to learn python and I want to have Ctrl-C break the python script from the terminal window even when I am not in insert mode. However, I also want Ctrl-C in my ...
3
votes
1answer
43 views

How to map Alt key with M J K L U I O to make a numpad?

I would like to have the keys M, J, K, L, U, I, O to be mapped to 0, 1, 2, 3, 4, 5, 6 (combine with the keys 7, 8, 9 already being on top of those keys) to be a total numpad when I hold a modifier key,...
0
votes
0answers
48 views

how does t_AB and t_Sb option difference in vim?

I see three sets of options for terminal colors on the vim documentation. The first set of options: t_AB set background color (ANSI) *t_AB* *'t_AB'* t_AF set foreground color (ANSI) ...
0
votes
0answers
187 views

How to hide terminal buffer without closing it?

I want to make toggleable window with terminal buffer similar to every IDE terminal feature. Currently i have mapped: noremap <F4> :botright 8split term://bash<CR> tnoremap <F4> &...
1
vote
2answers
313 views

Neovim with split integrated terminal / REPL

Other editors and IDEs, such as VSCode and RStudio, have an integrated console/terminal/REPL with the following characteristics: They open in a split window. The file we’re working on is visible at ...
2
votes
2answers
56 views

How to test for :terminal support?

I have neovim 0.3.4 installed which means I can run the :terminal command, however, doing :echo has('terminal') shows 0. So, I wonder if there is any other way I can test for its support because all ...
1
vote
1answer
57 views

Why does terminal vim enter replace mode with my vimrc file?

I mostly use MacVim, but sometimes I'm in the terminal and use the CLI vim. I recently decided to clean up my vimrc file, retaining only what I knew I wanted. It works fine with MacVim, but when I ...
3
votes
0answers
261 views

Remove transparency in VIM when terminal is transparent? [closed]

I want to keep the terminal background somewhat transparent, but when I open vim vim filename.txt it opens it in terminal (as I want) but the background of the vim is somewhat transparent too. Can I ...
2
votes
0answers
50 views

Using an iTerm color scheme inside a Vim :terminal window

My normal terminal color scheme is set via a color preset in iTerm. When I open a terminal window in Vim (:terminal) that color scheme doesn't get applied, presumably because Vim has no knowledge of ...
2
votes
2answers
90 views

How to set group of tabs and 1 single terminal in Vim 8?

I am a Vim beginner. I know you can do :tabnew file1 file2 to have Vim open up a bunch of files name file1, file2 spread across as tabs. I know you can move forward and backward between tabs. My ...
0
votes
1answer
75 views

How to use fzf :Buffers/:Files commands from vim terminal buffer

When in (Vim) terminal mode, I can use and then :e! fileName to open a file. Note that without the !, the following error message is displayed "E948: Job still running (add ! to end the job)". How ...
0
votes
0answers
17 views

How can I change delay between bells?

When I hold some key that causes error (eg. Esc in Normal), my terminal beeps with quite long delay between two beeps. I use very short beep (7 ms). How can I decrease time between beeps?
1
vote
1answer
109 views

Change Vim command :terminal so instead of CMD there will open Bash terminal [duplicate]

I am used working on Vim on Linux, where I use tmux + vim to switch between terminal and vim edit quickly. Now I am trying to setup the same on windows 10. I try to use gVim on Windows 10, but I like ...
2
votes
1answer
296 views

Terminal-mode not working with Ctrl-W

I am trying to work more with the built-in terminal for vim 8.1 and reading through the docs noticed it has two keybindings for entering the normal Terminal-mode. CTRL+\ CTRL+N as well as CTRL+W CTRL+...
1
vote
1answer
26 views

Retrieving results from variations of system('top') returns errors

Directly on the Ubuntu terminal, I can extract the results from top regarding a specific PID with: top -p <pid> -n1 | awk '/<pid>/' Where <pid> should be substituted with a PID ...
0
votes
1answer
53 views

Prevent a window from resizing [duplicate]

I nearly always have a terminal window open when I'm doing extensive editing in Vim. I've used tnoremap to set mappings for the three heights I want the terminal window to be able to take. ...
0
votes
0answers
36 views

Terminal Vim displaying unknown character at the bottom

Here is a picture of my vim, which is run in OSX terminal: https://imgur.com/gallery/shZkIng If you look at the bottom of each file, where it lists the name of the file and how far down the file I am ...
2
votes
1answer
35 views

Not displaying ErrorMsg for long lines only with tex, md and calendar buffers

I use and love the plugin calendar.vim. Those days, I decided to add the following to my vimrc: autocmd BufEnter *.tex,*.md call matchdelete(4) autocmd BufLeave *.tex,*.md call matchadd("ErrorMsg", "\...
0
votes
1answer
68 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 ...
0
votes
1answer
111 views

Making Numpad numerical keys work in Vim using Ubuntu 18's terminal

In my current machine, I use Vim 8.1 in a Ubuntu 18's default terminal (Vim is running with TERM=xterm256-color, which is a requirement for me). Everything works perfectly, with the exception of the ...
2
votes
1answer
77 views

How to know which highlighting group is used for the background of a word?

Vim highlights the background of certain words (e.g. when doing spellchecking) in a way that I would like to change (because the background and the word itself are almost of the same color, which ...
0
votes
0answers
49 views

terminal shell behaves differently from normal shell

I run this command in a common terminal: $ ps aux | grep work | grep python | awk '{print $2}' Then I have three different pids, however, in the vim-term window, the same line gave me two pids. ...
1
vote
3answers
312 views

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

When I'm in the terminal and I press <C-w>s the screen is split vertically and the terminal buffer is shown twice. Then I have to do :terminal if I want a separate terminal instance. Typing ...
2
votes
0answers
41 views

Function keys: won't work with macros (I tried a lot)

Specs: Vim 8.0 patch 500 gnome-terminal 3.18.3 on Ubuntu 16.04 running Unity Function keys in my vim slightly misbehave, however, in an annoying way: I can't completely use them in my macros. After ...
1
vote
1answer
70 views

updating running neovim's setting `background` using a terminal response

On my laptop, I frequently swap between a dark and a bright colorscheme for my terminal. I do this by symlinking its configuration file and asking it (termite) to read it without closing using killall ...
1
vote
1answer
239 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 ...
2
votes
1answer
49 views

Occupy the remaining space in terminal

When I open the vim in the xterm (ubuntu) there's always a space on the right and bottom part of terminal which is not fully occupied by the vim. What could be the reason behind it? And what are the ...
0
votes
1answer
213 views

Why doesn't undercurl use underline in my terminal?

:help undercurl states: "undercurl" is a curly underline. When "undercurl" is not possible then "underline" is used. In general "undercurl" and "strikethrough" is only available in the GUI. But if ...
0
votes
1answer
181 views

How to set a colorscheme that still shows spelling errors?

How to set a colorscheme that still shows spelling errors? I am looking for two combined effects that I can acquire separately but not yet together. Set Colorscheme alone: OK. If I want highlights ...
1
vote
1answer
108 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 ...
4
votes
1answer
532 views

Clear New Vim Terminal window

Vim's new :term feature is pretty neat, but when I run something like a rails server, I want to be able to clear logging output every now and then. The usual methods in a non-vim term window don't ...
1
vote
0answers
232 views

(Solved-ish) neovim: Don't close :terminal buffer after process exit

In Vim, when I run, for example, :terminal python3, and, when I'm done, exit python, the terminal window stays open as a readonly buffer, which I can inspect freely. In Neovim, I always get "[Process ...