Questions tagged [iterm2]

`iterm2` is a GPL terminal emulator available on macOS.

859 questions
12
votes
1 answer

VIM really slow with long yaml

I have a 624 line Yaml file that is completely unusable in vim. Here's is my config: https://github.com/brandonhilkert/dotfiles/blob/master/vim/vimrc If I run "syntax off" if works fine but obviously doesn't highlight. Is there some way to improve…
brandonhilkert
  • 4,205
  • 5
  • 25
  • 38
11
votes
1 answer

zsh issue : have the most recents files and directories near to the prompt and suggested most recent files or directories

On MacOS Big Sur 11.3, here is my .zshrc. I would like to get the latest modified or create files and directories near to the prompt (sorted from the most recent up to the oldest ones). Here my current config in ~/.zshrc : # ZSH completion autoload…
user1773603
11
votes
1 answer

How to put "enter" or "return" when sending text in iTerm2

This is an image of where I want to put "enter" or "return" i.e. inside the "command" While I can put characters, I do not know how to "enter" so that it can run a line and another one inside command. I am having a same problem for "send text" -- I…
CottonCandy
  • 444
  • 2
  • 5
  • 15
11
votes
0 answers

ctrl+c not working in iTerm2

Really weird problem. in iTerm2 only, Ctrl + c no longer work to kill the running program (Terminal is fine). I've looked into the settings, but I can't see anything that might be causing this. What could be the problem..?
nkkollaw
  • 1,947
  • 1
  • 19
  • 29
11
votes
1 answer

How to make bash tab-completion work like windows' cmd.exe?

Say I have a folder with files in it with names like this: log_1.log log_2.log log_2.gz And I want to perform some operation, let's say move, on log_2.gz. In Windows cmd.exe, I am used to performing these steps: Type move (and nothing else)…
Matt Faus
  • 6,321
  • 2
  • 27
  • 43
10
votes
1 answer

How to fix Mocha invisible text on Solarized Dark iTerm2 theme

I have this issue several times, the last thing I attempted was some patched solarized dark theme (that I can't seem to find, sorry for no link) but the problem with that was it made vim background really bright. This problem was reported in 2011,…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
10
votes
5 answers

iTerm2 closing curly brace not working

in the last weeks I had the problem that in iTerm2 the closing curly brace is not working anymore. It works in all other applications (including Terminal), but iTerm2 is not showing the curly brace. The opening curly brace works. I have got a German…
lehnerchristian
  • 1,236
  • 3
  • 13
  • 26
10
votes
2 answers

Iterm2 colors - using the 42m or 41m options

So I've downloaded and set my iterm2 colors based on the themes from this site: http://iterm2colorschemes.com I wanted to know though, how to set the terminal to the 40m, 41m, 42m, etc. colors. What are those, and is there a way to change the…
ProtonChain
  • 121
  • 2
  • 10
10
votes
3 answers

enable mouse scrolling but not mouse visual selection in vim?

I recently enabled mouse mode in vim: set mouse=a Which I love for scrolling but is awful for highlighting text. I am using vim in iTerm2 on a Mac. Now when I select text it's very slow to highlight (only highlighting after the highlight dragging…
Kevin Bullaughey
  • 2,556
  • 25
  • 37
9
votes
1 answer

How to fix/restore mouse controls in tmux on iTerm2?

I've been playing around with my iTerm2 shell setup. Previously I'd been able to use mouse controls to resize panes, etc. in tmux by simply adding set -g mouse on to .tmux.conf. Now, however, it's just not working in iTerm2 (but it is working in the…
Magnus
  • 3,086
  • 2
  • 29
  • 51
9
votes
3 answers

iterm2 issue : create new tab with same path of previous current tab BUT 2 tabs are clones and not indepedent

I have switched from default terminal on MacOS Mojave to iterm2. I have an issue about the opening of a new tab from the current tab. Indeed, I would like to be in the same path than the previous current tab. For this, I did the classical procedure,…
user1773603
9
votes
1 answer

MacOS: iterm2, zsh cancelling process with control + c not working, but it works with control + m or control + shift + c

Ok, this is weird. My terminal (iterm2 with zsh) exits a command with control + m or control + shift + c now instead of only control + c. Any ideas on why this is happening? Thanks!
nrion
  • 4,258
  • 4
  • 17
  • 33
9
votes
3 answers

iterm2 shell prompt now shows "(base)"

I have been using iterm2 for a couple years now and its great. Lately, however, my prompt has changed in an odd way and I can't tell what it is telling me. Originally, my prompt looked like this: @:$ Now, the prompt…
bottlecap
  • 455
  • 1
  • 5
  • 9
9
votes
1 answer

Iterm2 with tmux intergration not using keybindings from .tmux.conf

I have been using tmux in iTerm2 for a while now but I have not been using the tmux integration that now comes with iTerm2. I started looking at using the tmux intergration as it allows you to use the shell intergration inside tmux. The problem i…
hvenables
  • 338
  • 5
  • 11
9
votes
1 answer

copy paste in iterm, vim

I use iterm in Mac as my command line terminal. In iterm I use tmux as the terminal manager. When I open my code files in Vim copying has become painful in this. To copy text in vim I need to hold "option" key and then select the text. When holding…
Kai
  • 953
  • 6
  • 16
  • 37