相依赖的包:

ncurses-5.6-sol10-x86-local.gz

gtk+-1.2.10-sol10-intel-local.gz

glib-1.2.10-sol10-x86-local.gz


下载地址 http://down.51cto.com/data/2452965

 

安装依赖包

#gzip -d ncurses-5.6-sol10-x86-local.gz

#pkgadd -d ncurses-5.6-sol10-x86-local

 

#gzip -d glib-1.2.10-sol10-x86-local.gz

#pkgadd -d glib-1.2.10-sol10-x86-local

 

#gzip -d gtk+-1.2.10-sol10-intel-local.gz

#pkgadd -d gtk+-1.2.10-sol10-intel-local

 

 

安装vim

#gzip -d vim-7.2-sol10-x86-local.gz

#pkgadd -d vim-7.2-sol10-x86-local

 

 

添加环境变量:

vi /etc/profile找到export PATH前面添加:

 

PATH=$PATH:/usr/local/bin

LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/loca/lib

export PATH LD_LIBRARY_PATH

 

 

#source /etc/profile

 

编写.vimrc

 

set nocompatible

set history=50

set undolevels=100

set viminfo='20,\"50

set showmode

syntax on

set ignorecase

set tabstop=4

set shiftwidth=4

set background=light

highlight Normal guibg=White guifg=Black

set backspace=2

set noerrorbells

set laststatus=2

set cmdheight=1

set statusline=%<%F%h%m%r%h%w%y\ %{&ff}\ line:%l\ col:%c%V

set foldenable

set showmatch

set lz

nnoremap <F3> <Esc>nl

inoremap <F3> <Esc>nli

inoremap <C-H> <Esc>:%s/search/replace/gc

nnoremap <C-W> gti

inoremap <C-W>  <Esc>gti

"set nowrap   "// do not wrap lines

"set number   "// turn on line numbers

set nobackup