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
1
vote
2answers
71 views

How can I detect if the vim I'm running on is the Git for Windows vim?

I have a shared .vimrc that I use across platforms. It works fine in most circumstances, but looks terrible when I run git commit from the command line. I want to make my color scheme not load when ...
1
vote
1answer
82 views

`termwinsize` cannot be accessed from Python 3

The option termwinsize cannot be accessed from Python 3. Input python3 << EOD import vim for window in vim.windows: if (window.buffer.options['buftype'] == b'terminal'): window....
2
votes
2answers
53 views

Why does my lightline status line not show up right away?

Currently when I open a file (NerdTree appears automatically as well), the light line status line plugin I installed does not show up right away. It only shows up after I switch tabs into NerdTree and ...
1
vote
1answer
72 views

Vim does not react to Ctrl key combinations on alacritty

I have been a happy termite user for years, but that project was abandoned recently and superseded by alacritty. The problem is that a Vim session launched in alacritty ignores key combinations with ...
1
vote
1answer
33 views

Neovim Terminal shows a different list of programs available in /usr/bin

I have installed Neovim via flatpak on Fedora 34. I use the coc.nvim plugin for Neovim, it complains that it can't find 'node'. However I have installed node and it is in /usr/bin/node. To double ...
1
vote
1answer
41 views

How can I give a keyboard shortcut (c-tab, c-s-tab) back to the terminal?

I am a long time user of git bash and its included vim and mintty. I updated from an older package including vim 8.1 to one with 8.2, and I have a new problem with just two mintty shortcuts. I haven't ...
0
votes
1answer
19 views

How does the dialog for W11 work?

If I edit a file outside of a Vim session, then go back to the Vim session, I get this nice message: W11: Warning: File "~/.vimrc" has changed since editing started See ":help W11" ...
0
votes
1answer
45 views

Background color for listchars chars

I use the solution from this question to display tabs with litlle ⸱ characters. It works but they appear on a lighter gray background than the dark gray background I am using. It is quite distracting ...
1
vote
1answer
42 views

Launching vim with a servername

I am trying to use reverse searching from PDF documents to their respective *.tex files. I use vim (in terminal) as my editor and my PDF viewer is Zathura. Forward searching works however the problem ...
0
votes
0answers
19 views

vim pattern search - used more memory than max mempattern

I just did a simple pattern search in vim, and this error kept prompting. Why a simple pattern search consume so much memory ? what's the problem ? how to proceed from here on ? Thx
0
votes
1answer
68 views

Check if vim is opened in tty

Normally I'm using the light theme in vim but if I open vim in the tty with the background=light option, than I can't see anything (almost everything is white). So I'd like to set background=dark ...
0
votes
0answers
34 views

How to clear pieces of other windows/popups stuck to screen

I'm running 8.1.2269 in a terminal on Ubuntu 20.04 (with Regolith). What sometimes happens, is pieces from other windows, sometimes popups get stuck on the screen. What I mean by this is for example ...
0
votes
0answers
38 views

Map left command key to left control key in terminal only?

I've asked this question over on AskDifferent without any luck. I'm using neovim to edit code and am needing to create a mapping to bind to <cmd-w> to <C-w>. How would I go about this on ...
1
vote
1answer
28 views

Forcing integrated terminal to scroll down after relayed command

I have a plugin which integrates a terminal that I can send commands through using a custom command I made. The only issue I'm having is that sometimes after the terminal gets clogged, it tends not to ...
1
vote
0answers
28 views

Change colour of character under cursor?

I'd like the character under my cursor to always be black in normal mode, so it contrasts with the cursor. I'm using windows terminal, which doesn't support this directly, and vim (not gvim), so guifg ...
0
votes
1answer
28 views

Lightlin background colors not displaying in MacOS Terminal

Background colors in the status line (and elsewhere in vim) are not displaying. This may be because I am using someone else's Lightline config, but it looks quite different to what I am seeing. My ...
0
votes
1answer
153 views

How to run terminal command in interactive mode from NeoVim?

I have a terminal command which runs code with a breakpoint in it. When I run this command in NeoVim the code execution does not stop at the breakpoint, instead I get an error, that its not a TTY ...
3
votes
1answer
202 views

Open two terminal windows side by side

If I am in Bash and type vim -O file1 file2 I will get two files opened side by side. How can I get a similar effect but for :terminal windows, not for files?
1
vote
1answer
42 views

Copy lines and execute in terminal window

Edit a python file with vim adddf.py, and type vert term and python3, there are two windows in vim. cat adddf.py def add_df(df,number): import re new_df = pd.DataFrame() nrow = df.shape[0] ...
0
votes
1answer
49 views

Gvim loads incorrect colorscheme unless I run the command again

In my ~/.vimrc file, I have my colors set up like this: " Access colors present in 256 colorspace let base16colorspace=256 " Vim colorscheme colorscheme default " Lightline ...
4
votes
0answers
41 views

Intermittently cannot switch from Vim terminal to other panes

I've looked at quite a few other posts and haven't found a similar problem. I've recently begun using WSL and Vim and love it. Most of the time, it works great and I use CTRL-W-h/j/k/l to navigate ...
3
votes
1answer
93 views

Why has vim started launching the ilist on FocusGained?

Recently, on Debian Sid (accessed via SSH from an ArchLinux machine using Terminator), something has started triggering the [I / :ilist function whenever vim gains focus. If I start vim without ...
0
votes
0answers
17 views

How to open terminal in split in vimrc with keybinding [duplicate]

I am trying to open a new terminal (size of 10) inside of neovim. I use the command, :split|resize20|term. It works well, but I want to make a hotkey to do this in my init.vim nnoremap <C-P> :...
1
vote
0answers
31 views

Vim process hung on background systematically

Edit #1 - I found a plausible reason. I suspect that the Vim process got stuck o background whenever I closed a terminal window with Vim still running. I've been careful to :qa Vim and 'logout' the ...
-1
votes
1answer
30 views

How to pass custom arguments to the shell invoked by :terminal?

I would like to specify the startup command to run on the :terminal shell. E.g. bash -c ls. The shell can be specified with set shell=bash, but how to specify the arguments? In another use case, I ...
0
votes
1answer
111 views

Send command to :terminal buffer in Vim?

I used :term to open a new integrated split terminal window. The problem is, using :! <cmd> opens a new buffer which takes the entire screen, runs the shell command, then waits for me to press ...
2
votes
1answer
81 views

Vim Terminal interferes with statusline

I am editing a lot of files with Vim, and I have the following in my .vimrc to help me stay oriented as to which file I am in: " Add file name to statusline so we know where we are in the ...
1
vote
0answers
47 views

What are the acceptable values for termwinkey?

What are the acceptable values for termwinkey? From VIM's documentation, it appears that any single keystroke (multi-byte or not) should be valid. However, setting it to <D-'> (my first choice) ...
-1
votes
1answer
119 views

Black Borders in Neovim when using Windows Terminal

Why are these black borders generated when I open Neovim in Windows Terminal?
0
votes
1answer
146 views

Set the color scheme for current window only?

How can I set the color scheme manually for the current window only ? colorscheme affects all windows when I use it. My use case is that I am using neovim and I have a terminal session in one window ...
1
vote
1answer
45 views

MVim terminal, how to execute multiple commands

I am trying to use MacVim's :terminal to execute some commands, but for some reasons I fail to make even the simplest functions work. Here are some examples: :function TryF() : execute '...
1
vote
0answers
291 views

how to make vim colorscheme work on big sur terminal?

some say I need to install iTerm because osx terminal only support 16 colors but when I check the terminal.app it use xterm-256 and it support 256 color test some say default osx doesn't support 256 ...
0
votes
0answers
18 views

Shift+AnyLetter and Forward Slash Not Working on wsltty [duplicate]

I'm noticing errant behaviour with some standard key sequences with Vim 8.1 on wsltty. The correct behaviour is displayed when inside wsltty's standard terminal, so until proven otherwise I'm assuming ...
0
votes
0answers
48 views

How can I prevent the cursor from blinking in Elvis in Xterm?

The cursor of vi (elvis) keep blinking under on a Raspberry Pi with the Rasbian distribution. It occurs with Xterm, not the xfce-terminal. On the computer or via ssh session. With the same setup (....
0
votes
1answer
32 views

Record the mode before pressing <c-\><c-n> in terminal

I want to restore the pos of cursor in terminal when I reopen the terminal: If the mode was terminal mode before, it is easy to feed a 'a' to terminal to change from normal mode to terminal mode. If ...
1
vote
1answer
82 views

How to use JSON API to send messages from terminal to vim?

In terminal.txt, there is description about terminal-api, but it seems not to give a example to show how the message is send from terminal to vim function Tapi_..., is there some examples for the ...
1
vote
2answers
96 views

How to show a terminal under all tabs?

I have opened few files in tab vim -p file1 file2 file3 When i have opened a tab contains file1, I open a terminal :botright terminal But this terminal is only available for file1 . when I open ...
-1
votes
2answers
1k views

How to hide terminal when not needed?

In VScode ,we are using ctrl+j to hide the terminal. Then if we press ctrl+j again, it will open the same terminal. Is it possible in VIM/NEOVIM? I tried :Terminal ,but there is no straightforward way ...
0
votes
0answers
28 views

Read-only terminal in Vim

Is it possible to open terminal window (:term) in vim in read-only mode? I'd like to have this window interactive (for instance, to see compilation progress), but do not send keystrokes to it, so vim ...
0
votes
0answers
47 views

How to override the terminal title bar preferences in Vim

I have only the Working directory or document and Active process name preferences checked for Terminal window titles. Then in VIM I use a custom titlestring. However, the title bar is displayed as &...
0
votes
2answers
46 views

How can I run this command (clang++ *.cpp -o main && ./main) in :term on vim?

In neovim, my code compiles and runs fine with this command: :term clang++ main.cpp -o main && ./main , but not in vim. When I run it in Vim the code neither compiles nor executes. I get the ...
1
vote
1answer
84 views

In vim8.2, is there any difference between using :term vs :shell?

In vim 8.2, is there any difference between using :terminal versus :shell to run commands on shell? Or are they identical? I would like to know if there are any specific use-cases for using :shell vs :...
0
votes
0answers
169 views

Set Background for Lines after EOF

I am trying to get transparency on DWM to work by setting the background color in vim to NONE. highlight Normal guibg=NONE ctermbg=NONE This works fine unless I have files that contain not enough ...
0
votes
0answers
32 views

after compilation in Vim : cursor in gg

I'm french... sorry for my english I try to compile files (.tex, .md ... using vim). I open terminal and make the compilation ; just before the compilation i save the file and put a marker in the ...
0
votes
1answer
172 views

how i set floatterm plugin in neovim , that shortcut F5 compile javascript and how i do for other languages?

i plugged float-term plugin , that open terminal window in neovim. when i compile javascript with node in float term i did like :FloatermNew node % then it compiles fine and show me the output in ...
1
vote
0answers
71 views

Vim ignores color 255, as if it doesn't support the 256 ones

Update: it works, if I set the main bg color (white) as ctermbg=231 (it was 015). So it seems that color values in Vim syntax highlight settings shouldn't be mixed: if one uses color codes from the 16 ...
0
votes
1answer
44 views

Command not working when mapped

I've mapped CTRL+Meta+n to :split | resize 15 | term. This command works when run from Vim, but when I put the command in my .vimrc, on Vim startup, I get the following error: zsh:1: parse error near '...
1
vote
1answer
90 views

`:tab drop` in not supported in terminal

I use fzf to find/open files, but it always creates a new tab or replaces the current buffer. I want instead to use :tab drop <filename> but I get E319: Sorry, the command is not available in ...
5
votes
1answer
747 views

What's t_TE and t_TI added by vim 8?

First let me show a screenshot below. In the modeline, a strange sequence of characters(>4;m<ESC>[>4;m<ESC) is shown. And not only in the modeline, I have seen such similar sentence in ...
2
votes
1answer
216 views

Vim in Termite with Default Backgroundcolor not displaying ColorColumn ctermbg=0

I am currently setting up vim, for the first time. I'm on Arch and i3, fresh install. I installed termite as my default terminal emulator. I also tried st. Now st had a black background by default but ...

1
2 3 4 5
7