Solaris 10安裝vim

相依賴的包:vim

ncurses-5.6-sol10-x86-local.gzide

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

glib-1.2.10-sol10-x86-local.gzspa


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

 

安裝依賴包ip

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

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

 

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

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

 

#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

相關文章
相關標籤/搜索