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.

0
votes
1answer
13 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
15 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
2answers
30 views

Neovim Terminal is not working [closed]

Neovim Terminal is not working. I see the bash shell prompt, but I don't see the text when I type.
1
vote
1answer
26 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 ...
1
vote
1answer
44 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
21 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
18 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
24 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
34 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
22 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
43 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
56 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
45 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
1answer
33 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 ...
2
votes
0answers
34 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
37 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
45 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
45 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
34 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
57 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
50 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 ...
3
votes
1answer
115 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
114 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
1answer
49 views

Unable to use the clipboard when inside terminal (:term) on macOS

Actually, I am unable to do so when I am using MacVim Application. But inside iterm using Vim (the same MacVim release), I am able to. They also both use the same .vimrc . Both versions compiled ...
0
votes
1answer
23 views

Unexpected characters injected when copying from clipboard to vim in terminal

I'm using OS X 10.14/Vim 8.0.1283 and iTerm2. Every time when I'm copying things from clipboard to terminal, in specific iTerm2, there will be some unexpected characters injected in. Say I'm copying ...
1
vote
1answer
52 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
71 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
2answers
185 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
38 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 ...
1
vote
2answers
298 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
35 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
67 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
223 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
174 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
1answer
896 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
75 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 ...
3
votes
1answer
342 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
70 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
225 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
171 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
95 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
197 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 '\...
2
votes
1answer
70 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
165 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
2answers
950 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
154 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
169 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
45 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
235 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
155 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 ...