sudo gedit /etc/vim/vimrc 開啟配置檔案,在最後面輸入如下文字,儲存:
set nu //顯示行號
set tabstop=4 //設定tab為4格
set autoindent //設定自動縮排
set cursorline //凸出顯示該行
set cursorcolumn //凸出顯示該列
color blue //設定顏色主題為blue
set autoread //設定自動讀取檔案
map :w:!g++ % -o %< && ./%//ps
set nu
set mouse=a
set tabstop=4
set autoindent
set cursorline
color evening
set autoread
set ruler
set nobackup
map :w:!g++ % -o %< && ./%<
imap :w:!g++ % -o %< && ./%<
vim基本配置
這裡的常見符號指 等。為實現這些符號的補全 匹配 跳轉功能,可以通過一些簡單的vim設定來做到,如下 自動補全括號及高亮顯示匹配括號 set showmatch 高亮顯示匹配的括號 set matchpairs specially for html set matchtime 1 匹配括號高亮的時間...
Ubuntu的基本配置
ubuntu的基本配置這裡博主用ubuntu單獨安裝在一台電腦上。啟動refus,選擇mbr方式,開始 重啟電腦,u盤快速啟動 dell f12 按流程來即可,注意先不要聯網,因為內建的軟體源在國外 先複製清華軟體源,再執行如下命令 sudo mv etc apt sources.list etc ...
vim基本配置 vimrc
語法高亮 syntax on 高亮度查詢 set hlsearch 設定底色色調 set bg dark 可隨時用退格鍵刪除 set backspace 2 顯示行號 set number 自動縮排與c語言風格縮排 set autoindent set cindent 縮排寬度 set tabsto...