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.
471 questions
1 vote
1 answer
39 views
Neovim assumes MacOS terminal width is 80 until I resize terminal by hand
Example: If a MacOS terminal width is some value other than 80--let's say, 100--and I open Neovim in the terminal, Neovim thinks the terminal it's in has a width of 80 characters, until I resize the ...
1 vote
1 answer
113 views
Mapping alt+arrow keys
I want to map the arrow keys to scroll up or down one line. I'm doing it this way: nnoremap <M-Up> <C-y> It only works when it's in the .gvimrc file, not the .vimrc file. It does nothing ...
0 votes
1 answer
71 views
nvim terminal nested nvim how to return focus to inner nvim
I use nvim and lazygit in the terminal, with the lazygit configuration file located at ~/.config/lazygit/config.yml. The configuration is set as follows: os: edit: 'nvim {{filename}}' editAtLine: '...
-1 votes
1 answer
86 views
How to delete a character with Vim in termux? [closed]
I had installed termux on my Android phone, then I installed Vim in termux: pkg install vim I found that there's no way to delete a character where the cursor is located in termux Vim. How to delete ...
2 votes
1 answer
189 views
send ctrl-w to nested vim in vim terminal window in gvim?
I am using gvim on windows, and I have a vimterminal window in which I have an ssh session to Linux, where I have vim open. In the remote vim I have the window split; how do I jump between splits ...
0 votes
0 answers
74 views
Ctrl + number (top number row) is not recognized at all
I am trying to map Ctrl + number, say 1 for now. But Neovim doesn't recognize it at all. The way I am knowing this is I am first doing :echo getstrchar and then pressing any key. It is showing some ...
2 votes
0 answers
125 views
Why does nvim freeze when pressing Ctrl+Z+U simultaneously in gnome-terminal?
It sometimes occurred that Neovim froze after I pressed some key combination by accident (not Ctrl + S), meaning that it did not seem to react to any keyboard or mouse input (also not Ctrl + C and ...
2 votes
0 answers
51 views
Run process in background works from terminal but not from Vim [closed]
The following command: xdg-open 'myfile.html' & opens myfile.html in Chrome if I start the command from the terminal. However, if I run :!xdg-open 'myfile.html' & from Vim nothing happens. ...