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.

43 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
12
votes
0answers
183 views

Using <C-,> causes “<80>ü^D,” to flash in the showcmd area?

I've mapped <C-,> as well as some other special keys (<C-Enter>, <C-S-Space>, ...) in my vimrc like, :set <F13>=^[[44;5u :map <F13> <C-,> :map! <F13> <C-...
5
votes
0answers
246 views

Properly restore terminal title after suspending vim

I'm using Vim 7.3 on OS X Terminal version 2.6.1 (OS X version 10.11.2). If it's relevant, my version is compiled without X11. When I open a file in Vim, the terminal title bar changes to show the ...
4
votes
1answer
536 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 ...
3
votes
0answers
163 views

Why are Vim 8 :term colours with gvim different from those in plain vim :term or bash?

Vim 8 :term colours in gvim happen to be different from those seen in plain vim :term or bash. How come? How does one obtain the same bash colours in gvim? EDIT: I have been reading a bit more about ...
3
votes
0answers
403 views

Getting balloonevalterm to work (terminal version)

I'm trying to get balloonevalterm to work in the terminal version of vim, but for some reason it does not yet work. Here's my macros.vim file: function! MyBalloonExpr() let macros = { \ 'MACRO' : ...
3
votes
0answers
584 views

Why does `set t_ve=' hide cursor in terminal

Vim's documentation lists t_vi as "cursor invisible" and t_ve as "cursor visible", but provides no hints on usage. Naively, I would have guessed that Vim would send the t_vi sequence when you somehow ...
3
votes
0answers
555 views

Wrong color-theme displayed

I recently saw this video about tmux and vim and instantly fell in love with the color theme used in the video. Luckily the presenter (Nick Nisi) provides a link in the video-description to his .vimrc ...
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 ...
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
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 ...
2
votes
0answers
420 views

disable cursor blinking in terminal-vim

I thought this would be a 10 second google search, but no. I found a bazillion sources how to disable cursor blinking in GVim. But I would like to disable it in terminal vim. My terminal cursor is set ...
2
votes
0answers
60 views

Implement “Press any key to close” in neovim terminal buffer

When running shell commands in a terminal buffer I often just want to examine the output, and then close the buffer. Let's say I call :term ls. How would I implement a simple "Press any key to close" ...
2
votes
0answers
70 views

Color questions for macOS

I just got a mac and have been trying to setup Vim 8 on the built-in terminal. I am mostly having some difficulties with colors. 1) After set number, how do I change the line number colors? I tried ...
2
votes
0answers
439 views

How to detect terminal enter in vim8

Vim8 now has a terminal feature, how can I detect when a terminal is started? Neovim has TermOpen and TermClose autocommand events, does vim8 has an equivalent?
2
votes
0answers
306 views

Changing background color of cursor during selection

Coming from Sublime, I find the following behaviour frustrating. When I select some text, the first (or last depending upon which way you select) character flashes between the text color and your ...
2
votes
0answers
231 views

Send SIGINT to iTerm from vim

I'm using vim-rspec on a mac with macvim and iterm. I'm using this command to clear the iTerm screen and run the test in iTerm. let g:rspec_command = "clear && rspec {spec}" let g:...
2
votes
0answers
56 views

How can I set tex filetypes to use plaintex solarized coloring

I use solarized for my terminal color. When I first create a new tex file and begin writing, I get the plaintex colorscheme, which I like. But once I save and reopen, I get the tex colorscheme, which ...
2
votes
0answers
326 views

How to use arrow keys mappings in vim-submode plugin on linux terminal?

Following this answer I've been using vim-submode for some months on a windows gVim. Now that I'm trying to apply the same configuration on a terminal vim on linux I have some problems: With the ...
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:...
1
vote
2answers
176 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 ...
1
vote
0answers
233 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 ...
1
vote
0answers
288 views

Neovim not showing correct background color

I'm running neovim from a uxterm on arch linux with the solarized color scheme. The issue is that on scrolling only the characters which are non-whitespace are displaying the correct background. ...
1
vote
0answers
303 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
0answers
247 views

vim does not redraw the screen properly when scrolling the page up or down line-by-line

I am connected to a Windows SSH server from a Linux client, on Windows I end up in a Powershell. For small,quick edits I use the official vim windows console binary. It seems to work without ...
1
vote
0answers
36 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 ...
1
vote
0answers
203 views

Normal highlight group changes cursor color in vim in xterm

I set the following highlight: :hi Normal ctermfg=250 ctermbg=235 The text is a nice light gray on dark gray, as intended. But the cursor has become dark blue. I'd love to have it just be the ...
1
vote
0answers
94 views

Have NeoVim confirm before closing when terminals are open

When we type :qa or :wqa, neovim quits/save-and-quits all buffers. This also closes any terminal buffers that are open, even if there are pending jobs running. Those jobs just get killed! Is there a ...
1
vote
0answers
40 views

how can I close the shell buffer? Prefferbly under a certain condition.

I have written a python script that is doing some checks for a LaTeX file and then compiles it. I call it upon saving the file using the following line :autocmd BufWritePost * !~/.vim/latex_compiler....
1
vote
0answers
318 views

terminal color interferes with vim colors

The following screenshot displays the sorcerer colorscheme displayed in mintty on cygwin windows with the following minttyrc: # CursorColour=191,191,191 # ForegroundColour=220,220,204 # ...
1
vote
0answers
276 views

Visual selection in Nvim-R plugin sends one line too much to terminal

I have just set up the Nvim-R plugin for Neovim to send lines of code from an .R-file opened with Neovim to a terminal inside a tmux session. Previously, I have worked with its predecessor Vim-R, ...
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 ...
0
votes
1answer
101 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 :...
0
votes
0answers
49 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
192 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> &...
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?
0
votes
0answers
37 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 ...
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. ...
0
votes
0answers
91 views

Does Vim in console/tty have same colors set as in terminal/xterm-256color?

When I setup vim for colors in terminal, I'd like it has the same as in console, so Does console support 256color? as I'm using xterm-256color in a terminal right now?
0
votes
0answers
176 views

Why gvim can't work with command: p4 client?

P4EDITOR is set to gvim in .p4enviro. When run command p4 client in terminal, it will pop an empty tmp file. But if change editor config to P4EDITOR=vim, it works fine. How to fix this?
0
votes
1answer
93 views

Is it possible to manage tabs only within the single window in split mode?

Here is my situation. I launch tmux on iTerm2 and then split the window vertically (left and right), then make the right side of the window split horizontally. So now, there are 3 windows, one big at ...
0
votes
1answer
94 views

How do you fix the Home and End keys producing 'H' and 'F'?

I recently was doing some Vim editing and noticed the behavior was very different for two important keys. The only difference I made was I started bash using: env -i bash --init-script ~/.bashrc....
0
votes
0answers
64 views

when vim isnt run as just vim, getting no colors

I recently started using :set termguicolors which enables 24 bit colors. However, this (along with the rest of my config) causes vim to display absolutely no colors whenever it is started in a ...
0
votes
0answers
253 views

Vim leaving behind character after saving with :w not sure why

I'm running into a weird behaviour where I'm editing a file and saving it with the :w command. The problem is it leaves behind the 'w' character after my line of edit. It doesn't do it all the time ...