
Create or edit the file ~/.nf: $ vim ~/.nf Now, colors are also an issue when running Vim within Tmux.
Mac terminal vim install#
Ubuntu or Debian users can user apt-get: $ sudo apt-get install tmux On your Mac, you can use Homebrew: $ brew install tmux

We can use Tmux to open up multiple "panes" within our shell.įirst, install it. Let's up our game and get Tmux into the mix. Once you start up a new instance of Vim, you should see your new, colored vim! Let g:solarized_termcolors = 256 " New line!!

To fix that, I finally came across this StackOverflow question, which had the answer waiting.Ĭhange your ~.vimrc settings from above to the following: " Some settings to enable the theme: I had a terrible background and the colors were completley off. If you're on a Mac, you may see something.ugly. Now open up your Terminal (iTerm2 or Terminal app). Now that we've added the solarized theme, we need to have Vundle install it. Simply add the Github repository name in ~/.vimrc: Bundle 'gmarik/vundle' " We saw this beforeīundle 'altercation/vim-colors-solarized' " New line!!

Next, we'll add the Solarized color theme. You'll get a confirmation "Done" message on the bottom of your screen if all goes well. Once this is setup, you can open a new instance of vim and run :BundleInstall: $ vim # Any file will do You can install Vundle by cloning it: $ git clone ~/.vim/bundle/vundle Configure VundleĪnd follow the installation directions by editing your ~/.vimrc file: set nocompatible We'll also figure out some issues Mac and Tmux have with showing 256 color themes.
Mac terminal vim how to#
Here's how to manage plugins for Vim and use Tmux to boost your productivity, as well as settle a few common issues. Setting up your computer for Vim and Tmux often comes with a few issues.
