Last call to make your voice heard! Our 2022 Developer Survey closes in less than a week. Take survey.

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
0 votes
1 answer
23 views

vim - why is the cursor different in different terminals

I have vim 8.2 installed on my Debian machine and when I open it in a gnome-terminal it has a solid non-blinking box as a cursor. But when I open a "pure" terminal with ctrl+alt+F3 and open ...
user avatar
1 vote
1 answer
56 views

What factors control the color scheme in a terminal?

I am trying to use VIM through new "Windows Terminal" app on a Windows 10 operating system. The VIM app is installed inside a debian WSL app. I can't wrap my head around how the entire color ...
user avatar
3 votes
2 answers
29 views

search for sentences that contains a few keywords (that is not in proper order)

Is there script or function for vim to do search of words that is not in proper location (sorry, i don't know how to put it in question) ? Example: This is a vim user who like the functionality which ...
user avatar
0 votes
0 answers
24 views

vim-ternimal normal mode splits wrapped lines to 2 lines

Is there a way to make vim treat it as a single line? This blocks some functionality for example navigating to that line and hitting gf to open the file. Because it is read-only I can't even join the ...
user avatar
1 vote
0 answers
43 views

gVim ':terminal' accents don't work

I am using gVim in Xubuntu 20.04. My version is vim 8.2.4295. If I use a regular terminal, like xterm, and open Vim and then type ':terminal', I can use accents, e.g., íàê, etc. while in the vim-...
user avatar
  • 11
0 votes
1 answer
43 views

Disable/change colors in vim terminal (but not in open file)

I'm on Mac Neovim. When I type :term, I am greeted by this: This poses some issues; For example when I run a command, it also colors the output; I don't want this to happen. Is there some way to ...
user avatar
  • 11
0 votes
1 answer
50 views

How can I close vim's parent terminal from within vim?

I am trying to close the terminal window directly from vim. The final purpose of this is to have a command (shortcut) that opens VSCode in the current directory from vim (when I need a GUI editor) and ...
user avatar
  • 101
0 votes
0 answers
18 views

In nvim, can I map Tab without removing <C-i> as `jump forward`?

I've been mapping all my telescope commands to tab-<key>, which is quite convenient. However I've noticed that its broken the default shortcut for navigating forwards through the jump list, ...
user avatar
  • 153
0 votes
0 answers
15 views

terminal bell from inside vim terminal

My terminal can and does a bell sound for different actions such as hitting tab or running >printf '\7'. my vim is configured to sounds a bell for error scenarios such as the command ggk. However ...
user avatar
0 votes
1 answer
32 views

How can I continue executing commands on a splitted terminal window with Vim?

Let's say I run the following command on a node.js file inside Vim: :terminal node %" I'd like to continue executing commands on the newly opened window with a single command. But if I try ...
user avatar
  • 375
0 votes
1 answer
64 views

How can I execute mjs files (node.js modules) inside Vim with the terminal command?

Let's say I have a pure node.js file.js as the following: const fs = require('fs') console.log("Hello World") If I execute it inside Vim with :%terminal node it works perfectly fine. I see ...
user avatar
  • 375
1 vote
0 answers
27 views

synchronizing vim-terminal pwd and vim pwd

I'm looking for a way to synchronize the vim-terminal pwd and vim pwd. so for example in normal terminal, navigate to directory a >cd /a/ open vim terminal > vim -c ":term ++curwin" ...
user avatar
1 vote
1 answer
44 views

vim terminal linewrap in normal mode

So suppose there's some text in vim terminal that is longer than the terminal width and it causes a wrap. Now suppose I go into normal mode in that terminal. In normal mode, we have an addition of 4 ...
user avatar
0 votes
0 answers
15 views

NVim weirdness when exiting terminal

I have my own syntax file for latex. When opening a :terminal in a new tab, and typing $ exit, or when launching a :terminal and exiting, the syntax changes to the out-of-the-box syntax.* What is ...
user avatar
  • 121
1 vote
1 answer
44 views

How can I execute a non named file on terminal with NeoVIm?

Some time ago, I've made this question where I asked how to execute a file on the terminal with NeoVim... The solution I found was the following :terminal bash % . Knowing that, I made the following ...
user avatar
  • 375
1 vote
0 answers
30 views

How to pre-render a terminal buffer before displaying it in a popup

I am currently trying to write my first plugin. So this is my first attempt at vimscript. I want to display the output of a shell command in a popup window. This can easily achieved with: command Cat ...
user avatar
  • 123
0 votes
0 answers
18 views

Vim only colours background of area with text in it [duplicate]

If I'm using kitty terminal the $TERM environment variable is xterm-kitty, which supports truecolour. I have set termguicolors in my .vimrc. When the terminal is in dark mode, and I enter set ...
user avatar
  • 101
0 votes
0 answers
32 views

How do I open new terminal outside vim to run python code or c code?

In GVIM Windows I want to map a key for running python code in an external terminal. I've tried au Filetype python nnoremap <buffer> <silent> <Enter> :exec '!python' shellescape(@%, ...
user avatar
0 votes
0 answers
25 views

vim search result minimap and vim minimap bug

I have installed minimap on my vim 8.2, it is quite good, but i found bug in it. Is there a "minimap" that can display search result on it too ? something like kate, when i do a search on ...
user avatar
2 votes
1 answer
36 views

:terminal, change prompt color or background color

When I run :terminal, I have a combination of blue color of the prompt over a grey background and I can barely read what is written, see attached image. What options can I add to :ter in such a way I ...
user avatar
  • 121
0 votes
2 answers
32 views

Is there a way to run current script in a split window (mimicing VSCode for example)?

When editing a script in vim, I can run it with :! bash % or :! python % for python scripts. When running the script, vim kinda goes back to the terminal, runs there, and then, after "ENTER" ...
user avatar
0 votes
0 answers
19 views

Avoid insert mode jumping to end of line in terminal pane

I would like my terminal panes to behave more like a normal text buffer. When I've got a modifiable terminal pane, and I want to modify a long command from normal mode, hitting i or cl doesn't work ...
user avatar
  • 103
0 votes
1 answer
59 views

Vim execute script on write

Ok i used " :term perl" in vim and it opened a horizontal split window (embedded terminal) with my perl code in the other split window. I like now to execute the perl code by simply saving ...
user avatar
0 votes
3 answers
114 views

Toggle Vim Terminal with Mapping like VS Code

I am trying to implement toggling of the Vim terminal like VS Code by doing <C-~>. But am not sure how to go about it. I find executing :term to open and to close tedious. I figured having a ...
user avatar
1 vote
0 answers
38 views

Strange code sequence <80>ýa <80>ý` recorded with -w

I was noticing when I exit Insert Mode using ctrl+[, and very quickly press ctrl+w q wanting to quit, every time I will end with ctrl+w dropped for unknown reason and a pending q. I tried starting vim ...
user avatar
  • 11
0 votes
1 answer
31 views

Temporarily enclose visual mode selection in parenthesis before executing command

I'm using neovim for working with Elixir, with the neoterm plugin which gives me REPL functionality. A well known challenge is that the fact that the terminal evaluates and executes code line by line, ...
user avatar
  • 103
0 votes
0 answers
107 views

How to use Window Terminal background image as vim background?

I'm using Window Terminal with a picture in background. I tried to set vim background transparency like this. And put this line to my vimrc after colorscheme gruvbox. hi Normal guibg=NONE ctermbg=...
user avatar
0 votes
1 answer
40 views

How to change foreground color of character underneath cursor?

I've tried setting the highlight rules below but it does not work. Whatever color I choose, the color of the character stays the same. I'm using xfce4-terminal on Linux and Terminal.app on Mac OSX. ...
user avatar
  • 103
2 votes
1 answer
34 views

Prevent Vim setting Application Keypad Mode on my VT520

I am attempting to use Vim via a serial console and every time I launch it, vim sends ESC= and instructs the console to enable Application Keypad Mode and my numpad stops working. How do I stop it ...
user avatar
  • 123
2 votes
0 answers
35 views

Why do <S-Left> and some other keys not work in vim under tmux?

I know at least about <S-Left>, <S-Right>, <C-Left>, <C-Rigth>. But I guess there are others. I'm mostly interested in the why. Because knowing a reason often makes finding a ...
user avatar
  • 339
2 votes
0 answers
37 views

Mouse highlight lines issue, root cause of data deletion / messed up

[https://gofile.io/d/zA8QPs]video of vim highlight issue1 I like vim a lot, the stability is wonderful.. However there is 1 protection feature that i need to have most. I am used to use vim with both ...
user avatar
1 vote
2 answers
225 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 ...
user avatar
3 votes
0 answers
42 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! ...
user avatar
  • 131
0 votes
0 answers
38 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 ...
user avatar
1 vote
0 answers
123 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 ...
user avatar
  • 11
1 vote
0 answers
97 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 ...
user avatar
0 votes
0 answers
122 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 ...
user avatar
  • 375
0 votes
1 answer
44 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 ...
user avatar
  • 1
0 votes
1 answer
43 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 ...
user avatar
  • 103
2 votes
0 answers
225 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 ...
user avatar
  • 21
0 votes
1 answer
39 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 ...
user avatar
0 votes
0 answers
31 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 ...
user avatar
1 vote
1 answer
189 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 ...
user avatar
1 vote
1 answer
120 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 ...
user avatar
0 votes
1 answer
290 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 ...
user avatar
0 votes
0 answers
83 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 ...
user avatar
2 votes
2 answers
958 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. ...
user avatar
0 votes
0 answers
134 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 ...
user avatar
0 votes
1 answer
192 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 ...
user avatar
  • 3
0 votes
1 answer
73 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 ...
user avatar
  • 103

1
2 3 4 5
8