root@debian7:~# vi /etc/apt/sources.list (配置包管理系统)
# Base repository
deb wheezy main contrib non-free
deb-src wheezy main contrib non-free
# Security updates
deb http://security.debian.org/ wheezy/updates main contrib non-free
deb-src http://security.debian.org/ wheezy/updates main contrib non-free
# wheezy-updates,previously known as 'volatile'
deb wheezy-updates main contrib non-free
deb-src wheezy-updates main contrib non-free
# apt-get(aptitude) 以此文件中列出的路径索引实现软件包管理
软件包更新:
root@debian7:~# apt-get update (更新软件包列表)
root@debian7:~# apt-get dist-upgrade (安装系统更新)
root@debian7:~# aptitude update (更新软件包列表)
root@debian7:~# aptitude dist-upgrade (安装系统更新)
安装配置vim 文本编辑器:
root@debian7:~# apt-get install vim -y (安装vim文本编辑器)
root@debian7:~# vim ~/.vimrc (调整vim功能开关)
set nomodeline (这个一定要写,目前有这个安装漏洞)
set nocp
set hls is
set ic
set cindent
set autoindent
set backspace=2
set nobackup
set noswapfile
set shiftwidth=2
set tabstop=2
set softtabstop=2
set expandtab
set ruler
set mouse=v
syntax on
"set bg=dark (更改背景色调/默认为light, " 为注释!)
:wq (详情:vimtutor)