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
2answers
33 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
45 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
15 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
29 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
25 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
20 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 ...
-1
votes
0answers
20 views

data copied from web browser and paste in vim changed format [duplicate]

Why is it when i copied this paragraph from website forum: Pasted in vim, and the result is like this below, the original paragraph format are all changed to tapering away. Like with anything on ...
0
votes
1answer
40 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
62 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 ...
4
votes
1answer
115 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
46 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 ...
2
votes
1answer
54 views

Using Vim with Vifm

When I open a file in Vifm and edit it with Vim is it possible to tab back to Vifm without closing the file? Or is it possible to use Vifm inside Vim to open files?
1
vote
0answers
23 views

How can I keep my cursor normal after exiting a terminal buffer?

Right now, whenever I open a terminal with :term, my cursor changes from a half-height/orange cursor to a full-height/gray cursor (depending on the emulator). When I navigate back to another window, ...
2
votes
3answers
300 views

Switching between terminal and vim for a touch-typist

I recently got into touch-typing as I thought it might help me in my work and increase my productivity (I am currently a programmer, sometimes editing text files). Oftentimes I find myself switching ...
2
votes
1answer
49 views

How to open two new empty buffers in two separate windows?

This is a follow-up question from this Question and Answer. Is it possible, and if so how, to open two (or more) new empty buffers in Vim (without associating them to a file), such that they both take ...
1
vote
1answer
15 views

Starting Vim in new, maximized terminals glitches display

I normally navigate my filesystem with a file manager, so that I don't issue vim file directly, but rather configure the file manager to spawn a terminal emulator with Vim, xterm -maximized -e vim ...
3
votes
1answer
53 views

Opening a terminal window and executing the cd command [duplicate]

In my current vim session, I would like to open a new terminal window and immediately execute the cd command in that terminal to change to a specific directory. I have tried :terminal cd /home/me/...
0
votes
0answers
41 views

Vim outputting weird characters and becoming unresponsive

I'm using Vim inside gnome-terminal. Every so often, typically after coming back to a file opened in a vim session in another terminal tab after editing some other file opened in some other vim ...
0
votes
0answers
41 views

termguicolors vs :terminal: incorrect colors being displayed

I'm having trouble with the colors of the the terminal windown opened by :terminal. I use a theme called PolarIce from themer.dev. This work perfectly on KiTTY, Gnome Terminal and pretty much any ...
1
vote
1answer
19 views

PATH order different in vim terminal window

I have anaconda set up with a few different environments. When I switch environments and open vim 8.2 and type :term to launch a terminal window and type echo $PATH, $PATH does not match what is ...
1
vote
1answer
53 views

Disable Shift+Insert from pasting from Primary

In Vim, the canonical methods to interact with X11's Clipboard and Primary is to use + and * registers. There are at least another two ways to paste from Primary into Vim: Shift-Insert and Mouse ...
1
vote
1answer
60 views

:terminal colorscheme inside Vim is different from either Vim or Host Terminal

I have a gruvbox theme applied to Vim inside my vimrc. The problem is that when I run the :terminal command inside Vim the colorscheme is different from either the Vim theme or the terminal emulator's ...
1
vote
0answers
43 views

autoupdate nvim terminal

Is it possible to make the nvim terminal always automatically scroll down so you can see the latest messages? For example I have my vim editor setup like this On the button half of the screen I have ...
-1
votes
1answer
51 views

How do I switch from terminal back to vim? [duplicate]

When I'm in vim and I use :term to open a terminal inside vim, how can I switch back from the terminal to vim?
2
votes
0answers
34 views

How does vim terminal talk to the root terminal emulator?

I use vterm to denote terminal inside vim, rterm to denote root terminal emulator in this post: rterm--->vim--->vterm Question1 All rendition is done by rterm? All escape sequence and text must ...
0
votes
0answers
37 views

How can I check the terminal ouput info in nvim?

I am at the beginning of switching from vim to nvim. When I build my program by runing a script from a shortcut key, it will output the build info. In vim, the build info is put into terminal, I can ...
1
vote
0answers
23 views

:term command changes cursor type in vim

I have set the cursor shape to be - I-beam in my terminal preference. When I execute :term command in vim, the cursor type is changed to block type. This change is retained even after I exit the :term ...
1
vote
1answer
16 views

How to map the C-W Shift+N for making terminal non active?

In Vim, you can invoke the terminal by :terminal. Then, you can treat the terminal window as a normal Vim window by doing Ctrl+w Shift+n. I want to map this sequence to, e.g, Ctrl+t. I checked with :...
0
votes
0answers
71 views

How to scroll the screen in terminal mode in neovim

In insert mode, we can use PageDown/Up or <Shift-PageDown/Up> to scroll the screen. But this fails for terminal mode. How can we achieve this in terminal mode? I'm using zsh on the Arch Linux ...
0
votes
1answer
103 views

How to run a command in neovim's terminal mode without leaving this mode

Suppose ALT+h to mapped to <C-\><C-N><C-w>j as following Nvim documentation: nvim_terminal_emulator. We have two horizontally split windows with terminal buffers and the right window ...
1
vote
1answer
31 views

How to put cursor in the right position after switching from normal mode to insert mode in terminal

After launching a terminal inside vim via :terminal, vim doesn't put curosr in the right position after pressing i in normal mode. As seen in the following picture, the cursor is put at the end of the ...
0
votes
1answer
27 views

Map a key on a terminal buffer whose corresponding job is already finished

The context I have mapped <c-p> in terminal mode so that it deletes the terminal buffer where the cursor is. The way I've created this mapping is presented below tnoremap <c-p> <c-w&...
0
votes
1answer
23 views

How can I execute commands or move to other tabs without first closing the terminal executed by `:term`?

I've created a new terminal by executing :tabnew +term. How can I execute other Vim commands or move to another tab without first closing the terminal (:term)? Currently, all input is directed to ...
2
votes
1answer
62 views

How can I pass extra arguments to gdb with Termdebug?

While using Termdebug, occasionally it would be useful to pass extra arguments to gdb (for example, -x). I've tried :Termdebug -x <my_file> <command_to_debug>, but that just seems to ...
2
votes
2answers
370 views

How can I change the colorscheme of the vim terminal buffer?

I use GVim with the gruvbox colorscheme. When I open a terminal inside vim with :term, the colors are different, it looks like another colorscheme is applied. The other terminals I use (urxvt and ...
1
vote
1answer
69 views

How do I get the name of the current terminal in Vim?

I'm currently running Vim in Windows 10. I want to specify in my config file certain settings for when I'm running Vim in Cmder, different settings when I'm running Vim in Alacritty, etc. When in ...
2
votes
1answer
68 views

$TERM specific NeoVim configuration

I spend half the time in a TTY (Linux console as in Ctrl+Alt+F2) and the other half in a X session. Unfortunately the color scheme I use for NeoVim in the graphical environment on xterm does not look ...
0
votes
1answer
16 views

How do you open text files exclusively for writing so that other applications cant access it at that time?

How can I restrict my other terminals from accessing one of my already opened file (within vim)? Sometimes I forget which one of my terminals has that particular file already opened and again open it ...
2
votes
2answers
210 views

How to activate bracketed paste mode in GNOME Terminal for Vim inside tmux

Edit this issue happens inside a tmux session. The original value of $TERM before starting vim is: echo $TERM screen The issue appears for example when pasting this kind of indented code: def ...
0
votes
1answer
93 views

Ctrl keybindings not working in wsltty

I have the following mappings: nnoremap <C-,> :tabe ~/.config/nvim/init.vim<cr> nnoremap <C-/> gcc Neither of these mappings is working - they both do nothing. I have a plugin ...
1
vote
1answer
34 views

How can I use the `:term` command without closing the current window on exit?

I often use the :term command in my projects to create new directories or perform other work. However, if I have multiple windows open, then executing :term from one of them will also close that ...
0
votes
1answer
22 views

How to I use terminal-function-details?

recently started working in the terminal Vim provides with :terminal. Reading through the man pages of this I reached the section on Terminal functions, which seem quite interesting. However, I'm not ...
2
votes
1answer
178 views

Neovim does not restore terminal cursor on exit

The cursor of my gnome-terminal is an underline _. I am using Neovim and I want the cursor in Command Mode to be: block | set guicursor=n:block-Cursor When I exit from Neovim I want the cursor back ...
1
vote
1answer
26 views

Cannot run basic Windows commands using :terminal

I have the GVim 8.1 compiled with +terminal flag. After I enter Vim via vim -u NONE, I try to execute simple command, like :terminal cd or :terminal dir just to check the output. Instead of the ...
4
votes
1answer
76 views

Why does custom map of <c-w><space> cause mapping delay in terminal mode?

I'm using <c-w><space> to open current terminal buffer in a new tab: tnoremap <c-w><space> <c-w>:tab split<cr> This map cause <c-w><c-w> trigger ...
1
vote
1answer
68 views

Shortcut for binding same command to multiple key

Is there any way to map same command to multiple key without repeating mapping. Like mapping this one inoremap ) <right> inoremap " <right> inoremap ] <right> into something like ...
0
votes
1answer
19 views

'include=^\s*\(from\|import\)' error in vim

When I type :set inc it doesn't work and below status bar shows include=^\s*\(from\|import\). Even when I turn on GVim it shows include=^\s*#\s*include error. Here is my .vimrc file set nocp ...
0
votes
0answers
37 views

Vim not rendering text when moving up

I can move down until the last line of a file with no issues. However, when move up the text that was out of screen bounds does not render (as shown by the figure) until i press Ctrl + L to force ...
1
vote
1answer
105 views

How to open a terminal horizontally on the right side of vim

I'm using vim 8 and I set a shortcut to open a terminal in my vim. nnoremap <F5> :wa<CR> \| :term ++kill=term<CR> It works except that it opens a terminal vertically as below: ----...
2
votes
1answer
116 views

Job still running in buffer while :qa

I'm using vim 8 with some plugins and shortcuts. I set a shortcut for :term to open a terminal in vim: nnoremap <F5> :wa<CR> \| :term<CR> command Q qa So when I type F5, a ...

1
2 3 4 5 6