Skip to content

Instantly share code, notes, and snippets.

@ghprince
Last active October 11, 2015 15:18
Show Gist options
  • Save ghprince/3878502 to your computer and use it in GitHub Desktop.
Save ghprince/3878502 to your computer and use it in GitHub Desktop.
Configure VIM in Solaris 10 for test code development

Configure VIM in Solaris 10

#####for test code development by Gordon Gao 10/12/2012

install vim and gvim using pkgutil

install following plugins (all from Github)

  • Pathogen https://github.com/tpope/vim-pathogen
  • NERDTree https://github.com/scrooloose/nerdtree
  • Powerline https://github.com/altercation/vim-colors-solarized
  • CtrlP https://github.com/kien/ctrlp.vim
  • vim-colors-solarized https://github.com/altercation/vim-colors-solarized

Install patched Deja Vu font fro Powerline from

https://gist.github.com/1630581

to

/usr/X/lib/X11/fonts/TrueType

Don't forget to configure gnome-terminal to use patched Deja Vu font

Edit Powerline file to include total lines of file

~/.vim/bundle/vim-powerline/autoload/Powerline/Segment.vim

in line 24, from

 Pl#Segment#Create('line.cur'    , '$LINE %3l'),

to

 Pl#Segment#Create('line.cur'    , '$LINE %3l/%-3L'),

Get Solarized colorscheme for Powerline from

https://github.com/patricklewis/vim-powerline/blob/develop/autoload/Powerline/Colorschemes/solarized.vim

Configure gnome-termial with solarized color pallete with scripts from (remember to select "light" mode)

https://github.com/sigurdga/gnome-terminal-colors-solarized

Add ISU syntax highlighting from

https://gist.github.com/3878484

to

/export/home/gogao/.vim/syntax

Copy .vimrc file from

https://gist.github.com/3871127

To

~/.vimrc

Add the following line into your shell rc file, e.g. .bashrc, .zshrc

alias vim='/usr/bin/env TERM=xterm-color vim'

Congradulations! You are done!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment