在你的home目录下,比如我叫liam用户名,那就是liam目录下,新建文件.vimrc里面写

set nu
syntax on
set backspace=indent,eol,start

set history=50
set ruler
set showcmd
set incsearch
set hlsearch
set wrapscan
set nowrap
set ai
set ignorecase
set indentexpr=4

终端截图

  3 Responses to “在Mac OS X下给vi润色”

  1. 有钱淫啊,都玩Mac了。

  2. 没钱,装在PC上的.

  3. ” System
    set nocompatible
    set backspace=indent,eol,start
    set nobackup
    set history=10

    ” Options
    set ruler
    set showcmd
    set incsearch
    set ignorecase
    set smarttab
    set expandtab
    set sw=4
    set ts=4
    set nu
    set mouse=a
    set autoindent
    set encoding=utf-8
    set laststatus=2
    set cmdheight=1
    set smartindent
    set cursorline
    set autoread
    set wildmenu
    set noswapfile

    tabs
    retab
    set tabpagemax=7
    set showtabline=2
    map :tabnext
    map :tabprevious
    map tn :tabnew .
    map tc :tabclose

    syntax on
    colorscheme darkblue

    filetype plugin indent on
    autocmd FileType text setlocal textwidth=80

    inoremap u

 Leave a Reply

(required)

(required)

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

   
© 2012 刘敏的Blog Suffusion theme by Sayontan Sinha