1.centos5.8
a.下载http://vault.centos.org/5.8/isos/x86_64/
CentOS-5.8-x86_64-bin-DVD-1of2.iso
CentOS-5.8-x86_64-bin-DVD-2of2.iso
b.vmware安装
http://www.dedecms.com/knowledge/servers/linux-bsd/2012/0819/8409.html
2.vim
a.vim的配置
vim插件,我选择性的配置,可用。http://blog.csdn.net/wooin/article/details/1858917
vim的环境配置。http://www.cnblogs.com/ma6174/archive/2011/12/10/2283393.html
以下代码为我centos5.8的配置项
1 "language light 2 syntax enable 3 syntax on 4 filetype plugin on 5 set nocompatible 6 set number 7 set background=dark 8 set history=50 9 set autoindent 10 set smartindent 11 set tabstop=4 12 set shiftwidth=4 13 set showmatch 14 set incsearch 15 set nobackup 16 set encoding=utf-8 17 set tags=tags 18 set nobackup 19 20 "taglist 21 let Tlist_Show_One_File=1 22 let Tlist_Exit_OnlyWindow=1 23 "winmanager 24 let g:winManagerWindowLayout=‘FileExplorer|TagList‘ 25 nmap wm :WMToggle<cr> 26 "a.vim 27 nnoremap <silent> <F12> :A<CR> 28 "grep 29 nnoremap <silent> <F3> :Grep<CR> 30 "auto code 31 filetype plugin indent on 32 set completeopt=longest,menu 33 34 "F5 build 35 map <F5> :call CompileRunGcc()<CR> 36 func! CompileRunGcc() 37 exec "w" 38 if &filetype == ‘c‘ 39 exec "!g++ % -o %<" 40 exec "! ./%<" 41 elseif &filetype == ‘cpp‘ 42 exec "!g++ % -o %<" 43 exec "! ./%<" 44 elseif &filetype == ‘sh‘ 45 :!./% 46 endif 47 endfunc 48 49 "F8 debug 50 map <F8> :call Rungdb()<CR> 51 func! Rungdb() 52 exec "w" 53 exec "!g++ % -g -o %<" 54 exec "!gdb ./%<" 55 endfunc
b.vim的熟练到进阶
http://easwy.com/blog/archives/advanced-vim-skills-catalog/
时间: 2024-12-04 10:54:38