Skip to main content

Questions tagged [iterm2]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
17 votes
8 answers
38k views

Trouble Using Color Scheme in NeoVim

I don't have a full understanding of how my color scheme is interacting with the term setting in vim and this is impeding my ability to get it to display correctly in neovim. In my .vimrc file, ...
Gall's user avatar
  • 183
10 votes
1 answer
3k views

Mouse wheel scrolling inserts characters

I'm using macvim inside tmux inside iTerm2. Basically I just want to be able to scroll the buffer using the mousewheel. I've set set -g moude-mouse on in my .tmux.conf, and set mouse=a set ttymouse=...
DeX3's user avatar
  • 403
5 votes
2 answers
14k views

Neovim Gray Background

Problem Anytime I switch to a colorscheme the background turns this ugly gray that gives everything a washed out look. Why does this happen, and how can I prevent it? Example screenshot— More ...
maxwell's user avatar
  • 171
5 votes
2 answers
1k views

How to force vimtex to display \textbf and \textit in insert/normal mode? [duplicate]

When I add \textbf{} or \textit{} before a word in vimtex the terminal shows the word but strangely hides the commands. I can only see them in the visual mode (see pictures below). Is there a way to ...
danilofreire's user avatar
5 votes
2 answers
14k views

changing cursor to block in insert mode on Neovim

I am a new neovim user. I am currently on MacOS, and using iTerm as my terminal emulator. I am using Neovim 0.4.3. I would like to configure my neovim in such a way that the cursor in insert mode is ...
Gagan's user avatar
  • 159
5 votes
2 answers
2k views

Pasting from cliboard in osx returns ^M instead of newline

I'm having a problem with pasting on MacOS Sierra. When I copy text with newlines, I can paste it in a terminal without issue. e.g.: Text to be copied: echo 'Foo' echo 'Bar' result from terminal (...
zsoobhan's user avatar
  • 153
4 votes
1 answer
5k views

Truecolor (termguicolors) causes display issues in Tmux

As far as my setup is concerned, I'm running Tmux 2.2 (with true color support enabled) inside iTerm2 version 3 on a Mac. To clarify, there are other questions already answered which address ...
djmoch's user avatar
  • 181
4 votes
0 answers
2k views

iTerm2 and VI key mappings

I am trying to use a few keys and key combinations with VI (VIM - Vi IMproved 8.2) running in iTerm2 3.4.15 with zsh on macOS Monterey 12.1 on the Apple M1 Max chip. So far, I tried to set ...
slybloty's user avatar
  • 143
3 votes
1 answer
175 views

Setting to prevent <c-h> to erase text

I have a map which allows me to navigate with hjkl in insert mode: " In insert or command mode, move normally by using Ctrl inoremap <C-h> <Left> inoremap <C-j> <Down> ...
Diego Somar's user avatar
3 votes
1 answer
513 views

Vim color black isn't black

I have the following text in my ~/.vimrc: syntax on colorscheme koehler highlight ErrorMsg ctermbg=Red ctermfg=Black however the error messages show like this: The error message is gray on red, not ...
user109923's user avatar
2 votes
1 answer
799 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 ...
Yuki Yoshimine's user avatar
2 votes
1 answer
229 views

Some umlauts and extended Latin characters are shown as fullwidth

In Vim, I find each of ü and ß takes up fullwidth, i.e. twice as fat as ASCII characters. I am writing some German-learning notes, and find this to be very confusing, since I have been mistaken that ...
Violapterin's user avatar
2 votes
1 answer
414 views

When scrolling with the mouse, how do I make the cursor push the screen instead of the screen drag the cursor?

When scrolling with the mouse, how do I make the cursor push the screen instead of the screen drag the cursor? I switched to iTerm 2 on macOS, but in the regular macOS terminal when I scroll the ...
user108589's user avatar
2 votes
1 answer
601 views

Can't Copy Non-ASCII Characters

I can't copy Non-ASCII charaters from Neovim anymore when I select them with mouse or crtl + v. For example, I have the Turkish word Bankası written in my editor. When I yank and paste it to somewhere ...
ogirginc's user avatar
  • 357
2 votes
0 answers
115 views

Key Registration Problem

I have a problem that sometimes happens when I do type in Neovim. It does not register keys or mouse clicks correctly, which causes me to restart the iTerm session and rescue the working file with ....
ogirginc's user avatar
  • 357
2 votes
0 answers
129 views

How to mimic Alt key functionality from ubuntu gnome to OSX iTerm2?

When I use Vim on my home Ubuntu computer, I am able to use alt-[key] as a quick way to jump from insert mode to normal mode and immediately run the [key] command. One thing I frequently do is: alt-j ...
Davis Owen's user avatar
2 votes
0 answers
113 views

Using an iTerm color scheme inside a Vim :terminal window

My normal terminal color scheme is set via a color preset in iTerm. When I open a terminal window in Vim (:terminal) that color scheme doesn't get applied, presumably because Vim has no knowledge of ...
gmolau's user avatar
  • 121
2 votes
0 answers
360 views

Send SIGINT to iTerm from vim

I'm using vim-rspec on a mac with macvim and iterm. I'm using this command to clear the iTerm screen and run the test in iTerm. let g:rspec_command = "clear && rspec {spec}" let g:...
Mio's user avatar
  • 433
2 votes
0 answers
723 views

Every line shows bold

Somehow every line in my Vim is bold. I'm using Consolas, which has a Bold typeface. Also, after leaving Vim, terminal is shown in Regular. The screenshot shows a small document that should have both ...
Ambidex's user avatar
  • 121
1 vote
1 answer
4k views

How to install base16 for iTerm2?

I'm new to iTerm and vim and have been trying to follow readme at: https://github.com/chriskempson/base16-shell to try to get a theme to work in iTerm2/vim. The theme will only run if I chmod it and ...
Babiker's user avatar
  • 111
1 vote
1 answer
3k views

Linespace in Vim using iTerm2

I am using Vim 7.4.488 in iTerm2. Currently I've configured the 'linespace' setting in iTerm2's preferences. However, I would like to set a different linespace for Vim. I know that :set linespace=1 ...
Jeroen's user avatar
  • 13
1 vote
1 answer
1k views

How do I get the Commands line in the absolute bottom of the screen

I'm setting up neovim and I can't seem to use the screen fully. This is how the terminal looks when I open neovim in either Terminal App, iTerm 2 or Alacrity. There is a whole empty like below where ...
thebenman's user avatar
  • 113
1 vote
2 answers
5k views

Changing colorscheme does not change text color?

I am new to vim and am trying to set a colorscheme. However, for both pre-installed and new colorschemes, the only thing that happens when I change the colorscheme is the background color changes. For ...
Frick Steves's user avatar
1 vote
1 answer
5k views

Why can't I install this colorscheme properly?

I'm trying to install this colorscheme. They instructed to use a package manager so I've used vim-plugged: Plug 'rakr/vim-one' While my colours on vim did change, it really does not look like the ...
idankor's user avatar
  • 145
1 vote
1 answer
403 views

vim is messed up in iterm

I installed both mvim(macvim) and vim through brew. vim was installed using "brew install vim " (with python3, doesn't matter ). The OS is High Sierra. While mvim is completely fine, vim is ...
eyal karni's user avatar
  • 1,226
1 vote
1 answer
795 views

Why some information can't been shown at status bar with iTerm2?

Installed vim with SpaceVim on macOS. When ran vim in the iTerm2 terminal, the information can't been shown rightly at status bar. Much of them been shown as ?. Why?
online's user avatar
  • 121
1 vote
0 answers
1k views

How to configure support for cmd key in terminal (neovim)

This question has been raised several times in several places. You can't map cmd out of the box when neovim is used in terminal. Most of the answers were you can't or try karabiner. There is this ...
eyal karni's user avatar
  • 1,226
1 vote
0 answers
715 views

In Vim, how to enable Meta in all keybindings?

In case it's relevant, this is on MacOS and iTerm. How do I use key mappings that involve the Meta key, e.g. <M-e>? For example, the auto-pairs plugin has a keybinding that allows you to ...
A is for Ambition's user avatar
1 vote
0 answers
3k views

Cannot type backslash (\) in Vim [closed]

I am starting to work with vim in iterm2 on macOS. Whenever I am in insert mode and try to type a backslash, the cursor jumps to the buttom of the Terminal-window and a forward slash appears. I have ...
deltavisions's user avatar
1 vote
0 answers
2k views

Vim bind ctrl arrow key not working on osx

I know they have many topics about that, but i no one of them works. My configuration worked before to switch between split window, but my session has been re-init and i lost my osx config and it's ...
albttx's user avatar
  • 1,205
0 votes
2 answers
353 views

Syntax highlighting with only some allowed colours

In my ubuntu gnome-terminal I have vims default syntax highlighting color scheme + some color-tuning made in my gnome-terminal to filter out most colors with green except red, purple and brown. ...
MD. Mohiuddin Ahmed's user avatar
0 votes
1 answer
189 views

neovim receives unwanted characters (mac/iterm2)

I am trying to set up neovim on my mac. Using iterm2 and having installed nvim through homebrew. When I launch nvim from my fish shell, it immediately shows 112 q112 q on the last line. This does ...
user1788466's user avatar
0 votes
1 answer
103 views

Vim not setting t_Co after iTerm2 update

Follow up to this question - I've narrowed the issue down to the fact that set t_Co=16 in ~/.vimrc is not being applied. SO post on restricting vim to 16 colors. If I open vim and execute :echo &...
Aaron Parisi's user avatar
0 votes
1 answer
2k views

I am currently configuring my Neovim setup, but I am only get it to work as a root user

Basically, I am creating a .config/nvim for Neovim on my M1 Macbook Pro (Monterey 12.6), and I using the iTerm2 terminal emulator. I am having to create the entire configuration as a root user because ...
anonymous017's user avatar
0 votes
1 answer
443 views

Use true Solarized colors from within tmux in iTerm2

How can I use vim (8.2) within a tmux session in iTerm2, with Solarized colors? I have the Solarized colors set with my terminal, as suggested in the docs for vim solarized colors plugin. When I call ...
Patrick Sanan's user avatar
0 votes
1 answer
106 views

Weird powerline symbol background in iterm2

I am experiencing a weird background color of powerline symbol in iterm2, it doesn't match with that of status bar. however, in alacritty, the background color are matched. In iterm2: In alacritty: ...
babygau's user avatar
  • 127
0 votes
1 answer
683 views

Whats the benefit of using :term inside Vim compared to a separate terminal emulator app?

I am using iTerm2, which is working well for me. I've been using VIM for almost 2 years now, with MacVim. Then suddenly I became curious whether my coding experience will improve when I use terminal ...
Noel Pure's user avatar
  • 103
0 votes
1 answer
4k views

E488: Trailing Characters error after attempting to install vim-hybrid

So I'm trying to use Vim-Hybrid as my native Vim theme but I've been running into a couple issues with it. Everytime I run the vim command now, I've been receiving the following error message: E488: ...
Benji Durden's user avatar
0 votes
1 answer
771 views

vi or Vim: Mac/Iterm 2 highlight-paste [closed]

When editing with Vim on Macbook Pro with Iterm2 interface I can copy text by: highlighting text with left-button double click on mouse, paste text by pressing center wheel on mouse. Instead of (2) ...
Jess's user avatar
  • 31
0 votes
2 answers
121 views

Homebrew Vim not sourcing ~/.vimrc after iTerm, MacOS updates

I am using vim installed via homebrew: > which vim /opt/homebrew/bin/vim > vim --version VIM - Vi IMproved 9.1 (2024 Jan 02, compiled May 09 2024 07:15:02) macOS version - arm64 Included ...
Aaron Parisi's user avatar
0 votes
0 answers
589 views

Certain Nerd Fonts does not display properly

On my Mac (M1), I am not able to get the symbols display properly with all Nerd Fonts excepting one I have installed Nerd Fonts as described in the documentation. Typically I use homebrew or have ...
jayr's user avatar
  • 33
0 votes
1 answer
1k 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, ...
john's user avatar
  • 183
0 votes
0 answers
31 views

How may I setup a consistent shortcut to switch to the right pane, even the pane is in another Terminal?

I have 2 screens of difference sizes, and I am a Neovim user (with Tmux, iTerm2). I would like to hack a way so that I can have a consistent way to "switch to the pane on the right of this pane&...
Sunny Pun's user avatar
  • 492
0 votes
1 answer
55 views

Unexpected characters injected when copying from clipboard to vim in terminal

I'm using OS X 10.14/Vim 8.0.1283 and iTerm2. Every time when I'm copying things from clipboard to terminal, in specific iTerm2, there will be some unexpected characters injected in. Say I'm copying ...
kenshinji's user avatar
  • 165