 
- 威望
- 1326
- 金錢
- 6391
- 貢獻
- 293
- 熱誠
- 315
- 分享
- 160
- 角色
- 不分/均可 (versatile/both)
- 最後登錄
- 2014-3-12
      
|
1#
發表於 2010-8-11 11:21
| 只看該作者
在 linux 上最常使用的編輯軟體,當然以 vim 為主,vim 功能強大,讓它可以縱橫十幾年而歷久不衰,這裡就介紹一個標記顏色的小技巧,讓我們在閱讀上變的比較方便。
dabian vim 的設定
# vi /etc/vim/vimrc
# 將下面複製貼上
""""""""""""""""""""""""""""""""""""""""""
set cindent
set smartindent
set hls
set nocompatible
set sw=3
set showmatch
set background=light
colorscheme desert
syntax on
set hlsearch
highlight Search term=reverse ctermbg=4 ctermfg=7
highlight Normal ctermbg=black ctermfg=white
# 下面有兩種設定可以改顏色
# 只能選擇其一
""""set color 1""""
"hi Comment ctermfg=Green
"hi Comment ctermfg=darkcyan
"hi Comment ctermfg=blue
""""set color 2""""
"highlight Comment ctermfg=Green
"highlight Comment ctermfg=darkcyan
highlight Comment ctermfg=blue
"""""""""""""""""""""""""""""""""""""""""""" |
大家好我叫祐祐唷^^~
希望能與各位大大多多認識交流^^~ |
|