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
43 views

How to robustly use D- mappings in terminal nvim?

I'm using kitty to run terminal nvim on macOS. I want to use D- (command-key) mappings inside nvim. Because terminals, for reasons I don't understand, don't simply pass command-key chords through to ...
3
votes
0answers
29 views

Pasting from vim to an ipython terminal

I have an open ipython terminal open, and I'd like to paste the visual selection to it, with prepending "%cpaste" and appending "--" This is what I came up with function! ...
0
votes
0answers
17 views

Vim Plug installment error on MacOS: Error creating directory /Users/api/.vim/autoload

I just migrated today from VSCode to Vim, and I need a little bit of help regarding the installation of Vim Plug. I installed Vim with Homebrew, and now I want to install Vim Airline. The tutorial I ...
1
vote
0answers
56 views

Remapping Ctrl+backspace in insert mode to delete one word back

I want to bind Control+Backspace in insert mode to delete a word. I'm able to bind Control+Del in both insert and normal modes, but I can only seem to bind Control+Del in normal mode. I've checked ...
1
vote
0answers
51 views

error: there was a problem with the editor "vi" -- while trying to change deployment file

Facing this error error: there was a problem with the editor "vi" when trying to change a deployment file in the Kubernetes cluster (AKS) kubectl edit deploy xxxxx -o yaml upon exiting the ...
0
votes
0answers
56 views

Is it possible to execute a vimscript from the command line?

I don't know very well how to work with vimscript... Because of that, I'd like to find a way where I can easily test what I'm trying to accomplish on my vimrc file, with some prints like on other ...
0
votes
1answer
32 views

Using a vim syntax file, I would like some Keywords, such as ??, to be colored

I have been trying to get through the syntax file documentation on vim help, https://vimhelp.org/syntax.txt.html#%3Asyn-files but it's quite the read and I figured someone here may know how to go ...
0
votes
1answer
29 views

Is there a way to have specific settings activated when using the term feature?

I often have neovim in a horizontal split mode with two buffers. The top buffer is the text file that I'm editing, and the bottom buffer is running a terminal using the term feature. I typically use ...
2
votes
0answers
63 views

Vim /usr/bin/bash: /s: No such file or directory

Repost from Stackoverflow; I read a comment which directed me here saying it would be more helpful. Just set up nvim; unfortunately, the following error is plaguing the setup. Whenever I try to ...
0
votes
1answer
33 views

Shell script runs multiple times, I want it to run only once

I use vim pretty extensively for latex compiling. I've a function which automatically compiles the current tex file. I use pdflatex as a compiler, which creates a bunch of different files that it ...
0
votes
0answers
23 views

vim in xterm not redrawing properly

Since this problem exists only when using vim in an xterm (neither gvim nor vim in aterm demonstrate this on my computer) this is likely not a vim problem, but because it is sooooo annoying when using ...
1
vote
1answer
102 views

How does "set mouse=a" actually work?

Could somebody explain, what is the reason to use set mouse=a? People say that thus I will be able, for example, to resize split windows (:sp, :vsp) by dragging separators, but I already can do it if ...
1
vote
1answer
80 views

Explore command not working in Terminal normal mode

In vim, I open a terminal using :term and enter the normal mode using <C-w> <N>. Then, :Explore does not open the vim's file navigation view, but creates a another split window of the ...
0
votes
1answer
109 views

Using the execute shell command (:!) on Windows and MSYS2

I'm new to neovim (and vim in general), and I'm trying to use it on Windows with MSYS2. I noticed they have a package for vim, but not for neovim. I used the neovim installed through chocolatey ...
0
votes
0answers
45 views

Inverse search from Zathura to .tex file

With the help of someone on this stack I was able to configure vim so that it launches with a server name that is the filename it opens. For example, if I run vim filename.tex, vim will launch with ...
1
vote
2answers
395 views

Mouse not working inside Alacritty

I am facing an issue with my vim. The mouse isn't working. I have set set mouse=a in my vimrc. I have checked it inside vim that the mouse value is set to "a". But it's still not working. ...
0
votes
0answers
58 views

Vim display won't refresh in XQuartz

I got a new laptop (macOS Big Sur 11.5.1) and vim does not work correctly in an XQuartz terminal window. Many commands that should erase characters on the screen (such as backspacing while in insert ...
0
votes
1answer
54 views

How can I open a split terminal with :term and then run a command in that terminal?

I'm trying to write a function to open a split terminal in Vim and then run the current file in that terminal. A non-working example trying to explain what I'm trying to do is function! Foo() :bel ...
0
votes
1answer
46 views

Vim8 && in :terminal's [command]

When running the vim command :!echo A && echo B the result is as expected A B Press ENTER or type command to continue However when I try to do the same thing with the new integrated terminal ...
1
vote
1answer
55 views

set -o vi in zsh: backspace doesn't delete non-inserted characters [closed]

I've used set -o vi on bash for a while. However, I've started using zsh, and I've found that when I try to use the "delete" key (backspace for mac), it doesn't delete non-inserted text. For ...
1
vote
2answers
114 views

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

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
87 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
330 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
273 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 ...
2
votes
1answer
55 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
79 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
27 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
132 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
98 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
24 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
197 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
76 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
121 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
32 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
115 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
41 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 ...
2
votes
1answer
827 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
221 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
45 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
114 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
47 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
143 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
37 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
43 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
218 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
202 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
83 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
220 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
248 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
2 3 4 5
8