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
2
votes
0answers
66 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 ...
10
votes
1answer
4k views

Number pad not working with vi and Putty?

When I am editing a file in vim via SSH, I will try to use the number pad on my keyboard to enter long numbers (like IP addresses). Vim does not seem to like that very much. I am using PuTTY for ...
1
vote
1answer
491 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 ...
1
vote
3answers
623 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
0
votes
1answer
40 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
3answers
356 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 ...
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,...
3
votes
0answers
342 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 ...
0
votes
0answers
68 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
359 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
634 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 ...
1
vote
2answers
415 views

Is there an upgraded version of the Conque plugin?

My searches for plugins which enable a terminal inside a Vim windows indicate that the main one is Conque, but the last update was 6 years ago. Are there some other better updated forks which are seen ...
2
votes
2answers
80 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
68 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 ...
14
votes
3answers
2k views

How to label tmux tabs with the name of the file edited in vim?

Whenever I open a tmux session in terminal, all of the tabs containing vim sessions are labelled vim. My question is: How to configure it to label tmux tabs with the name of the edited file or ...
2
votes
0answers
61 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 ...
3
votes
2answers
2k 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
119 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 ...
13
votes
9answers
23k views

Colorscheme's background not correct in terminal

I imported the solarized colorscheme and palette. My terminal has the correct colors and background, gvim has the correct colors and background, but vim has an incorrectly colored background. The text ...
0
votes
0answers
18 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
248 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
86 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 ...
2
votes
1answer
439 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
97 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
42 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
36 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
91 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
154 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
81 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
1answer
353 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
0answers
45 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
1answer
51 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
304 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 ...
1
vote
1answer
135 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 ...
2
votes
1answer
295 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 ...
3
votes
5answers
3k views

How to restore bash terminal title if using 'set title' in vim?

I recently got to know that useful info can be shown in title of bash terminal when editing files using vim. Adding below displays file name, path of the file being edited. set title But on exiting ...
1
vote
1answer
200 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 ...
1
vote
0answers
262 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 ...
0
votes
1answer
30 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
115 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
202 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 ...
2
votes
1answer
104 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 ...
0
votes
1answer
128 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 ...
3
votes
2answers
2k 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 ...
1
vote
2answers
2k 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 ...
0
votes
0answers
94 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
217 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
1answer
95 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 ...