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]

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.

1
vote
1answer
37 views

Visual Select highlighting not working anymore

The issue My custom highlighting styles for Visual mode selection of text is not as it was. It use to be yellow background with black text. Now it is just underlined. Environment vim 8.0 term, not ...
3
votes
0answers
39 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 ...
0
votes
1answer
52 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 ?
0
votes
1answer
28 views

How could I turn off the terminal line number while keep the editor line number in vimrc

I want to show line number in the editor, thus I use set nu in my vimrc. But when I open the embedded terminal with :ter, there are also line numbers there which I feel not comfortable. How could I ...
0
votes
2answers
56 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
0answers
23 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
29 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?
2
votes
0answers
72 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 ...
1
vote
0answers
52 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. ...
0
votes
0answers
26 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
182 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 ...
0
votes
0answers
30 views

Change color of character covered by cursor

I'm using xfce4-terminal and the cursor is green, which means that green text behind the cursor is not visible or is hard to see. Is there a way to force the etext behind the cursor to be some ...
2
votes
1answer
141 views

Scrollback in Vim 8 Terminal

Been really loving the asynchronous terminal in Vim 8. Sometimes I have a large amount of output in the terminal, and when I enter normal mode in the terminal and use gg to go to the top, I see that ...
0
votes
1answer
52 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 ...
1
vote
2answers
206 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 ...
0
votes
0answers
64 views

Is there a command to get out of Terminal mode on Neovim?

I could not get out of my Terminal mode for some reasons, using C-\ + C-n combinations. Maybe since I map the \ to my Leader (I'm not sure)... So anyway I would rather map Esc to the command that ...
0
votes
1answer
37 views

Scroll wheel inserts seemingly-random characters in cygwin vim, depending on where on the screen the mouse cursor is

I have the following options set to non-default values, as reported by :redir @+ | :set | @redir end: --- Options --- autochdir cscopetag foldcolumn=7 hlsearch lazyredraw relativenumber sidescroll=1 ...
1
vote
0answers
96 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
1answer
53 views

How to deal with accented latin characters on neovim

I'm trying to find out how to configure neovim in order to edit texts with accented latin characters. I usually set ambiwidth to double so Jananese symbols are displayed properly, but then neovim ...
7
votes
2answers
108 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 ...
0
votes
2answers
381 views

How to use WSL's bash shell as default terminal of gvim/windows 10?

gvim 8 1-26 / windows 10 I'd like to use Windows Subsystem Linux (WSL)'s bash shell as a gvim's terminal instead of cmd. So if I type in command potion of gvim: :!.\test.sh, it will echo result ...
2
votes
1answer
113 views

Clear shell screen everytime a shell command is run

Is there a way to clear the shell screen everytime before running a terminal command within vim? This would be most useful to me when running scripts while editing it as I have a binding for Python ...
2
votes
2answers
89 views

hide the WinBar (TermDebug)

Vim 8.1 add a new :Termdebug command with a really good gdb integration. If the mouse option is set, there is also a visual bar appearing on vim. Here is an extract of the man: If 'mouse' is set the ...
0
votes
0answers
35 views

gx doesn't work on visually selected text

I have a link to a pdf file in my vim which contains spaces. I'm trying to open it with external app. While with gf I can visually select the text (e.g. a b.pdf) and open the pdf as a text file but ...
1
vote
3answers
102 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
102 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 ...
1
vote
0answers
36 views

How to pass C-r to Vim terminal window? [closed]

In the Vim terminal I want to be able to search history in bash and ipython but C-r is already bound to basic Vim functionality. Is there any general way to pass this and other characters to the ...
1
vote
0answers
105 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 ...
3
votes
1answer
244 views

Neovim Gray Background

Problem Anytime I switch to a colorscheme the background turns this ugly gray that gives everything a washed out look. Why does this happen, and how can I prevent it? Example screenshot— More ...
0
votes
1answer
166 views

What does `-` mean in command `ls -la | vim -`?

I got to know commands like ls -la | vim - can be used to open Linux command output in vim. What does - mean after vim? Is it some kind of special switch? Why doesn't simply using ls -la | vim works ?...
0
votes
0answers
29 views

Vim 7.4 on terminator - cursor intel not working

I want to see an I-beam like cursor when I come in insert mode, otherwise block style. I tried every iteration from http://vim.wikia.com/wiki/Change_cursor_shape_in_different_modes but none worked so ...
0
votes
1answer
179 views

Vim Terminal - Solarized Colorscheme [Gnome]

I've tried syntax on let g:solarized_termcolors=256 set t_Co=256 set background=dark colorscheme solarized but it doesn't look like GVim, how can I achieve that? Right now
1
vote
0answers
41 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" ...
0
votes
1answer
76 views

Scrolling the terminal with vi shortcuts? [closed]

I have vi shortcuts set on my gnome-terminal and can't figure out how to scroll through the terminal's output after the change. Before I could use Shift+Page-up, but this isn't working in normal or ...
1
vote
0answers
28 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
1answer
95 views

Delayed esc from insert mode caused by cursor-shape terminal sequence

I set a couple terminal options so that Vim changes the cursor shape to a vertical bar when I enter Insert mode, an underbar for Replace mode, and a block when I return to Normal mode: let &t_SI="...
3
votes
1answer
286 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.
1
vote
0answers
88 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 ...
0
votes
1answer
77 views

bash script to open file and translate text

I have followed your post and used :%s/\\u\(\x\{4\}\)/\=nr2char('0x'.submatch(1),1)/g to translate unicode escape sequences. However I have to open the file and need to press escape and paste your ...
0
votes
1answer
58 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
46 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 ...
3
votes
1answer
284 views

Up arrow key code, why '^[[A' becomes '^[OA'?

If I run cat under terminal (xterm-256color), and then press the up arrow button, I see ^[[A as output. But if I press <ctrl-v> <up> in vim insert mode, I see ^[OA as output. So i wonder ...
1
vote
1answer
54 views

How to know the shell started with :terminal?

After :terminal runs, is there a way within Vim script to determine the type of shell that started with creation of the terminal ? within Vimscript, NOT via OS commands such as ps.
3
votes
1answer
156 views

Remapping Alt key in terminal: problem with macros

I'm using xfce4-terminal. I remapped most Alt+key combinations in a file that is loaded in the .virmc. The file (called alt_bindings.vim, only loaded in vim 8 terminal mode) is like this: set <M-...
1
vote
1answer
74 views

<esc>k inserts `q`, r inserts two qs

I am experiencing a problem for which I have no idea where I can start the search to solve it. When I go into insert mode and start writing something and then quit insert mode with <ESC> and ...
1
vote
1answer
54 views

Name the buffer with the current command that runs in the term emulator

I know it's weird and I don't know if it's possible but it would be great to have the name of the command I run in the terminal emulator when I use bash or zsh. At the moment, to launch a new ...
3
votes
0answers
174 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' : ...
1
vote
1answer
317 views

Why some information can't been shown at status bar with iTerm2?

Installed vim with SpaceVim on macOS. When ran vim in the iTerm2 terminal, the information can't been shown rightly at status bar. Much of them been shown as ?. Why?
1
vote
0answers
62 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 ...
4
votes
1answer
134 views

Get back regular vim colors

I just installed Linux Mint 18.3 and to my surprise colors in vim changed! Vim in the terminal on the left has the color scheme I've always seen and got used to. Vim in the terminal on the right has ...