Skip to content

Instantly share code, notes, and snippets.

@kevinquinnyo
Created September 25, 2016 21:55
Show Gist options
  • Save kevinquinnyo/d8fd8bd64682566725bc0f53a37399de to your computer and use it in GitHub Desktop.
Save kevinquinnyo/d8fd8bd64682566725bc0f53a37399de to your computer and use it in GitHub Desktop.
Vim customization
# Install Vundle -- A vim plugin manager
git clone https://github.com/gmarik/Vundle.vim.git ~/.vim/bundle/Vundle.vim
# Test terminal 256 color support
bash < <(curl https://gist.githubusercontent.com/kevinquinnyo/1598610d133e4f9f872de1444677a5cf/raw/cbcc804a99efa28fed6d9299c8e1cedca2c9bcc7/bash-color-test.bash)
)
# Test vim 256 color support
vim "+runtime syntax/colortest.vim"
# Close vim, try again with this:
export TERM=xterm-256color
vim "+runtime syntax/colortest.vim"
# If it looks better the second time, you need to add "export TERM=xterm-256color" somewhere in your ~/.bashrc then:
source ~/.bashrc
# Download vimrc
cp -n ~/.vimrc ~/.vimrc.bak || true && curl https://gist.githubusercontent.com/kevinquinnyo/9edb095d1670ae9f372630ca9ae51894/raw/19e44cc0e2e0f5d9a4accae8266b64f476f5a486/gistfile1.txt > ~/.vimrc
# In vim, install plugins with :VundleInstall
# Edit .vimrcm and uncomment the colorscheme line by removing the ".
# Test colorschemes in vim by using the command :colorscheme color-scheme-here
# Color schemes from the "flazz/vim-colorschemes" plugin we just installed are available at ~/.vim/bundle/vim-colorschemes/colors/
# If you are running a terminal that allows you to change the font I suggest inconsolata
sudo apt-get install -y fonts-inconsolata && sudo fc-cache -fv
# For example in terminator, right click > Preferences > Profiles, then for the Font dropdown select Inconsolata 10 Medium
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment