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

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

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

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

    即可語(yǔ)法高亮

    .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 一凡 閱讀(1244) 評(píng)論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 亚洲国产精品无码久久久秋霞1 | 免费无码黄十八禁网站在线观看| 亚洲最新视频在线观看| 一区二区三区免费在线视频| 免费人成毛片动漫在线播放| 2048亚洲精品国产| 亚洲精品视频免费| 中文字幕亚洲无线码| 亚洲性色高清完整版在线观看| 99在线热视频只有精品免费| 亚洲理论在线观看| 中字幕视频在线永久在线观看免费| 亚洲一级毛片免观看| 99精品视频在线观看免费| 亚洲欧洲日产国码无码网站| 亚在线观看免费视频入口| 亚洲精品mv在线观看| 久久精品女人天堂AV免费观看| 亚洲AV无码一区二区三区性色| 免费一级毛片不卡在线播放| 一级一看免费完整版毛片| 亚洲成AV人片在| 91久久成人免费| 国产精品亚洲专区无码WEB | 亚洲av午夜福利精品一区人妖| 欧洲人免费视频网站在线| 亚洲乱码一二三四区国产| 国产精品无码免费视频二三区| 一级特黄色毛片免费看| 亚洲午夜视频在线观看| 一级做a爰片久久毛片免费陪 | 日韩精品亚洲人成在线观看| 欧美a级成人网站免费| 色五月五月丁香亚洲综合网| 伊人久久大香线蕉亚洲| 青青青免费国产在线视频小草| 亚洲成Av人片乱码色午夜| 国产成人午夜精品免费视频| 一级**爱片免费视频| 亚洲免费黄色网址| 亚洲精品无码av天堂|