<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    隨筆-204  評論-90  文章-8  trackbacks-0
    1、copy /etc/vimrc ~/.vimrc
    2、vi  ~/.vimrc
    添加配置
    export TERM=xterm-color

    即可語法高亮

    .vimrc
    if v:lang =~ "utf8$" || v:lang =~ "UTF-8$"
       set fileencodings
    =utf-8,latin1
    endif

    set nocompatible        
    " Use Vim defaults (much better!)
    set bs=2                
    " allow backspacing over everything in insert mode
    "set ai                 " always set autoindenting on
    "set backup             " keep a backup file
    set viminfo
    ='20,\"50    " read/write a .viminfo file, don't store more
                            
    " than 50 lines of registers
    set history=50          
    " keep 50 lines of command line history
    set ruler               
    " show the cursor position all the time

    " Only do this part when compiled with support for autocommands
    if has("autocmd")
      
    " In text files, always limit the width of text to 78 characters
      autocmd BufRead *.txt set tw=78
      
    " When editing a file, always jump to the last cursor position
      autocmd BufReadPost 
    *
      
    \ if line("'\"") > 0 && line ("'\"") <= line("$") |
      \   exe "normal! g
    '\"" |
      
    \ endif
    endif

    if has("cscope")
       set csprg
    =/usr/bin/cscope
       set csto
    =0
       set cst
       set nocsverb
       
    " add any database in current directory
       if filereadable(
    "cscope.out")
          cs add cscope.out
       
    " else add database pointed to by environment
       elseif 
    $CSCOPE_DB != ""
          cs add 
    $CSCOPE_DB
       endif
       set csverb
    endif

    " Switch syntax highlighting on, when the terminal has colors
    " Also switch on highlighting the last used search pattern.
    if &t_Co > 2 || has("gui_running")
      syntax on
      set hlsearch
    endif

    if &term=="xterm"
         set t_Co
    =8
         set t_Sb
    =^[[4%dm
         set t_Sf
    =^[[3%dm
    endif
    posted on 2010-05-11 11:32 一凡 閱讀(1240) 評論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 亚洲第一AAAAA片| 四虎在线播放免费永久视频 | 美女隐私免费视频看| 在线观看视频免费完整版| 亚洲国产成人超福利久久精品| 国产精品区免费视频| 亚洲AV永久精品爱情岛论坛| 在线观看免费黄色网址| 国产亚洲精品一品区99热| 好紧我太爽了视频免费国产 | 59pao成国产成视频永久免费| 亚洲AV无码成人网站久久精品大 | 亚洲国产精品丝袜在线观看| 日韩在线视频线视频免费网站| 国产免费卡一卡三卡乱码 | 中文在线观看永久免费| 亚洲欧洲日产国码无码网站| 国产日韩一区二区三免费高清| 亚洲AV永久无码精品| www视频在线观看免费| 亚洲国产乱码最新视频| 日韩视频免费在线| 一本一道dvd在线观看免费视频| 中文亚洲成a人片在线观看| 国产精品免费久久久久影院 | 亚洲国产精品特色大片观看完整版| 国产免费阿v精品视频网址| 亚洲成AV人片在WWW色猫咪| 一级毛片免费毛片一级毛片免费 | 亚洲人成高清在线播放| 免费看香港一级毛片| 国产亚洲精品国产福利在线观看 | 99re在线精品视频免费| 亚洲国产成人精品无码区在线秒播| 性生交片免费无码看人| 疯狂做受xxxx高潮视频免费| 国产亚洲成人在线播放va| 99国产精品免费观看视频| 亚洲人成电影网站色| 国产亚洲人成A在线V网站| 18女人腿打开无遮掩免费|