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.
316
questions
0
votes
0answers
10 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
15 views
Vim process hung on background systematically
I've been using Vim, run from the terminal, as my main text editor for quite a while now; sometimes on multiple windows, sometimes with its own tab system, but mostly using the buffer to handle ...
-1
votes
0answers
10 views
nvim as external xhtml editor
My question is nvim specific. I am using a program called Sigil to edit epubs, it accepts an external XHTML editor. When I set it to use gvim it opens normally but when I try: st -e "nvim %f"...
0
votes
1answer
14 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
0answers
12 views
Why doesn't my Numpad work on the terminal? [closed]
I hace a macbook air.As you know, the laptop does not have its own numpad. I also connected a keyboard with usb. While the numpad of the keyboard is working in other parts, the visual studio does not ...
0
votes
1answer
30 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
40 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
14 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) ...
0
votes
1answer
20 views
Black Borders in Neovim when using Windows Terminal
Why when i am using Windows Terminal and i open Neovim that black borders are generated?.
1
vote
1answer
54 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 ...
0
votes
1answer
21 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
52 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
35 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
29 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
66 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 ...
0
votes
2answers
50 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
120 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
27 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
35 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
43 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
57 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
35 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
30 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
75 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
32 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
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
66 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
306 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
103 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
153 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
25 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
418 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
2answers
73 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
76 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
54 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
82 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
20 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
75 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 ...
2
votes
1answer
77 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
47 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
62 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
38 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
38 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
31 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
21 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
110 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 ...
-1
votes
1answer
352 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
34 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 ...