好用的vimrc

来源:互联网 发布:黑马教学java基础视频 编辑:程序博客网 时间:2024/04/28 12:50
au BufReadPost * if line("'\"") > 0 | if line("'\"") <= line("$") | exe("norm '\"") | else | exe "norm $" | endif | endif                                                                       
set hlsearch
colorscheme evening
set formatoptions=tcrqn
set nocp
set encoding=utf-8
set fencs=utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
set fileencodings=utf-8,ucs-bom,chinese
set langmenu=zh_CN.UTF-8
syntax enable
syntax on
set cursorline
hi CursorLine   cterm=NONE ctermbg=darkred ctermfg=white guibg=darkred guifg=white
set selection=exclusive
set selectmode=mouse,key
set nu
set showmatch
set nocompatible
set tabstop=4
set softtabstop=4
set shiftwidth=4
set autoindent
set cindent
if &term=="xterm"
    set t_Co=8
    set t_Sb=^[[4%dm
    set t_Sf=^[[3%dm
endif

filetype on
let Tlist_Show_One_File=0
let Tlist_File_Fold_Auto_Close=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_SingleClick=1
let Tlist_GainFocus_On_ToggleOpen=1
let Tlist_Process_File_Always=1
filetype plugin indent on
set completeopt=longest,menu
set shell=bash
set history=400


if exists("&autoread")
    set autoread
endif

set ambiwidth=double
set ffs=unix,dos,mac
set incsearch
set noerrorbells
set novisualbell
set nobackup
set nowb
set backspace=2
if has('mouse')
    set mouse-=a
endif                                                                                           
Already at oldest change

1 0
原创粉丝点击