<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 一凡 閱讀(1244) 評論(0)  編輯  收藏 所屬分類: linux
    主站蜘蛛池模板: 亚洲第一页综合图片自拍| 成人毛片免费观看视频大全| 国产国拍亚洲精品福利| 黄页网址大全免费观看12网站| 永久久久免费浮力影院| 亚洲精品无码国产片| 国产免费131美女视频| 国产偷国产偷亚洲高清在线| 免费人成视频在线观看视频| 一级毛片免费不卡| 亚洲色大成网站WWW久久九九 | 国产精品成人无码免费| 无码色偷偷亚洲国内自拍| 亚洲AV无码不卡在线观看下载| 黄色一级视频免费观看| 亚洲精品乱码久久久久久按摩 | 亚洲乱码日产一区三区| 久99久精品免费视频热77| 亚洲日本国产精华液| 免费的涩涩视频在线播放| 日本一区二区三区在线视频观看免费 | 亚洲国产精品日韩| a国产成人免费视频| 亚洲欧洲国产成人精品| 免费国产黄线在线观看| 黄色免费在线观看网址| 亚洲国产精品国自产电影| 天天天欲色欲色WWW免费| 人人爽人人爽人人片av免费| 亚洲第一AV网站| 毛片免费vip会员在线看| 男女啪啪免费体验区| 亚洲一区二区三区夜色| 日韩a级毛片免费观看| 一级中文字幕乱码免费| 亚洲欧洲日产专区| 亚洲国产激情一区二区三区| 无码精品人妻一区二区三区免费看| 亚洲人成www在线播放| 成人午夜亚洲精品无码网站| 91成人免费在线视频|