sudo apt-get install vim-gtk
sudo vim /etc/vim/vimrc
syntax on
set nu // 在左側(cè)行號(hào)
set tabstop //tab 長度設(shè)置為 4
set nobackup //覆蓋文件時(shí)不備份
set cursorline //突出顯示當(dāng)前行
set ruler //在右下角顯示光標(biāo)位置的狀態(tài)行
set autoindent //自動(dòng)縮進(jìn)
http://jingyan.baidu.com/article/046a7b3efd165bf9c27fa915.html
:wq 保存文件并退出vi
Question? apt Could not open lock file
Ubuntu與Debian下apt-get軟件安裝與刪除的相關(guān)命令
From Ubuntu使用教程:E: 無法獲得鎖 /var/lib/apt/lists/lock - open , I use sudo rm /var/lib/apt/lists/lock
then, try sudo apt-get install vim-gtk
, succeed. Otherways maybe also abailable, but I didn't try.