3、令sudoapt-getclean一、在/home/usr(你的用户名,我的是hagog)下,使用命令gedit.vimrc,在新建的文件下输入配置信息,那你的vim就有高亮,缩进,显示行号的功能"Thislineshouldnotberemovedasitensuresthatvariousoptionsare"properly set to workwiththeVim-relatedpackagesavailable in Debian. debian.vim"UncommentthenextlinetomakeVimmoreVi-compatible"NOTE:
4、debian.vimsets 'nocompatible'. Setting 'compatible' changesnumerous"options,soanyotheroptionsshouldbesetAFTERsetting'compatible'.setnocompatible"Vim5 and laterversionssupportsyntaxhighlighting. Uncommentingthe"followingenablessyntaxhighlightingbydefault.ifhas("syntax") syntaxon
5、 "语法高亮endifcolorschemeron "elflordronpeachpuffdefault设置配色方案,vim自带的配色方案保存在/usr/share/vim/vim72/colors目录下"detectfiletypefiletype onfiletypeplugin on"Ifusingadarkbackgroundwithintheeditingareaandsyntaxhighlighting"turn on this option aswellset background=dark"Uncommentthefollowingtoh
6、aveVimjumptothelastpositionwhen"reopeningafileif has("autocmd") auBufReadPost * if line("'"")>1&&line("'"") <= line("$")
7、 exe "normal!g'""
8、endif "haveVimloadindentationrules and pluginsaccording to thedetectedfiletype filetypepluginindent onendif"Thefollowingarecommentedoutastheyca