mac open vim under tmux will casue vim Huaping - macos

Computer:Mabbook Pro retina 2012 late
OS: OS X 10.9 and 10.10 all have this problem
terminal: iTerm and terminal all have this problem
vim version: Macvim 7.4.258
tmux version: stable 1.9a (bottled) HEAD
my dotfiles: .vimrc .zshrc .tmux.conf
when I open vim in terminal, everything is ok. But when I open vim in tmux, I met this problem in the following picture.look at screenshot
Once in a time the problem disappear, but after I "brew update" and "brew upgrade" It comes back. I really don't known what's wrong with them.
I can't code without tmux + vim , who can help me.
I have tried clear .tmux.conf, the problem still there. I tried to update the vim bundles, the problem still there.

Related

Installed iterm2, now both vscode and mac internal terminals are not working

I installed iterm2 and oh my zsh on my new macbook pro M1. Now I can not use the internal vscode terminal or mac terminal.
What I have tried:
I have updated my mac, vscode, iterm2, brew, and oh my zsh.
I am using zsh.
I checked my system preferences/users & groups/unlock/advanced options/login shell: /usr/local/bin/zsh. Which seems correct?
In iterm2 I checked echo $SHELL. (see image)
In iterm2 I checked echo $PATH. (see image)
I ran brew doctor. No issues there.
Checked that I had oh my zsh installed and updated.
iterm2-shell/path/brew/ohMyZsh
In vscode I have looked at code/preferences/settings/[typed]terminal
checked terminal>integrated>shell: Osx
checked that json file. I don't know what Im looking for there.
vscode-settings.json
Need Help With:
In vscode the terminal window does not open now and I get a error message.
vscode internal terminal error message
Now that I have iterm2, am I no longer able to use the internal mac terminal? When I go to open the internal mac terminal it is stuck on the following screen.
Internal mac terminal
Any help or guidance would be much appreciated. I am new to the terminal and command line.
Thanks in advance.

How to launch emacs in console on Catalina?

Before updating to Catalina, I was using emacs in the terminal. When I updated to Catalina, emacs was no longer found. So, I installed it with Homebrew. Now, emacs launches in a GUI, its own window. How can I get the 'emacs' command running emacs in the terminal again?
The flag -nw is always used to start emacs in a non-GUI mode. So, you'd use /Applications/Emacs.app/Contents/MacOS/Emacs -nw. Note that this is a Ruby wrapper around the Emacs binary, so on Catalina you may have to allow full disk access to Ruby as detailed in this Emacs.SE post.

OSX 10.9.5, Gnuplot 4.6.6 and XQuartz 2.7.7 don't work together

I'm trying to use gnuplot at OSX with X11 terminal. I downloaded the newest version of XQuartz 2.7.7 and I brewed gnuplot 4.6.6 --with-x option. However, when I try
gnuplot> plot(sin(x))
XQuartz opens, but there is no window with the plot. When I do "Show All Windows", there is nothing at all. I can gnuplot into png. I can also open "xterm" through the terminal. I tried to reinstall both programs many times, but nothing seems to work.
Any idea where could be a problem? (I need these two tools because of Octave.)
Thank you

cannot link homebrew emacs

Recently I uninstalled and reinstalled Homebrew entirely on my macbook (OSX 10.9.5) because there was some problem with my Python. Then I reinstalled all the programs in Homebrew and everything worked fine except for Emacs. When I tried to link emacs
$ brew link emacs
Linking /Users/myname/homebrew/Cellar/emacs/24.3... 21 symlinks created
I expected it to create a shortcut in Applications and I open the Emacs GUI from there, but Emacs is not showing up there and I don't know how I can open the GUI. What did I do wrong and how can I link my Emacs?
Try running it from the command line to see what's wrong:
emacs --debug-init
The program is likely not able to find some elc files or something among those lines.
If all fails, try using the master branch (I update my emacs frequently, such as today).
brew install emacs --HEAD --use-git-head --cocoa --srgb --with-xml2 && brew linkapps

using x11 emacs in mountain lion

I have been trying to use macport's installation by using sudo port install emacs +x11 on my laptop with mountain lion, but every time I open emacs in terminal, it opens in the terminal without any GUI. This also happens if I try to open emacs directly in an xquartz terminal session. Has anyone had any luck with installing the x11 version of emacs on mountain lion? And if so, how? Thank you!
Turns out apple cut the link between terminal and xquartz. If I open emacs in xterm, it will run just fine. I found this to be the case even when I was using terminal with an ssh server. Looks like apple's terminal isn't going to be all that helpful from here on out.
Edit; I'm not sure if it was an update to xQuartz, but the problem has been fixed. When I type in an x11 app into the normal terminal app, it will open xQuartz as normal.

Resources