vim和gvim基本配置

用vim一年有余,陆陆续续更新了自己的vim配置,我对现在的配置还是比较满意的,以后如果工作环境有迁移只需要简单的复制粘贴配置了。贴一下现在的配置。
也可以从git下载本文件



set nu
syntax on

"sets how many lines of history vim has to remember
set history=700

"set to auto read when a file is changed from the outside
set autoread

"always show current position
set ruler
set rulerformat=%20(%2*%<%f=\ %m%r\ %3l\ %c\ %p%%%)

"turn on the wild menu
set wildmenu

set backspace=2
set backspace=indent,eol,start whichwrap+=<,>,[,] 

"if mouse works
if has('mouse')
    set mouse=a
endif

set laststatus=2
set nocompatible
set autochdir

"no annoying sound on errors
set noerrorbells
set novisualbell
set t_vb=
set tm=500

set ignorecase
set showmatch
set shortmess=atI

"use spaces instead of tabs
set expandtab
set smarttab
set shiftwidth=4
set tabstop=4
set lbr
set tw=500
set ai
set si
set wrap

"Toggle Menu and Toolbar
set guioptions-=T 
set guioptions-=m

set encoding=utf8
set ffs=unix,dos,mac
set fileencoding=utf8

"menu encoding
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

"consle encoding
language messages zh_CN.utf-8

set nobackup
set nowb
set noswapfile

set fdm=marker
"set autochdir

set linespace=0

set sessionoptions+=unix

colorscheme koehler
"set background=dark
"let g:solarized_termcolors=256

set nowrap
set hlsearch
set incsearch

"font
"set guifont=Bitstream_Vera_Sans_Mono:h10:cANSI 
"set gfw=幼圆:h10.5:cGB2312

" vundle
if has("win32")
    set rtp+=$VIM/bundle/vundle
else
    set rtp+=~/.vim/bundle/Vundle.vim
endif
call vundle#begin()
" alternatively, pass a path where Vundle should install plugins
"call vundle#begin('~/some/path/here')

" let Vundle manage Vundle, required
Plugin 'gmarik/Vundle.vim'

Plugin 'scrooloose/nerdtree'

"Plugin 'Valloric/YouCompleteMe'

"lua check
"Plugin 'xolox/vim-misc'
"Plugin 'xolox/vim-lua-inspect'

"python check
Plugin 'kevinw/pyflakes-vim'

"vimscript
Plugin 'AutoClose'

Plugin 'AutoComplPop'

Plugin 'SuperTab'

Plugin 'vim-scripts/a.vim'
Plugin 'vim-scripts/taglist.vim'

"md
Plugin 'godlygeek/tabular'
Plugin 'plasticboy/vim-markdown'


" All of your Plugins must be added before the following line
call vundle#end()            " required
filetype plugin indent on    " required
" To ignore plugin indent changes, instead use:
"filetype plugin on
"
" Brief help
" :PluginList       - lists configured plugins
" :PluginInstall    - installs plugins; append `!` to update or just :PluginUpdate
" :PluginSearch foo - searches for foo; append `!` to refresh local cache
" :PluginClean      - confirms removal of unused plugins; append `!` to auto-approve removal
"
" see :h vundle for more details or wiki for FAQ
" Put your non-Plugin stuff after this line

"nerdtree
autocmd vimenter * NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
autocmd BufRead,BufNewFile *.{md,mdown,mkd,mkdn,markdown,mdwn}   set filetype=mkd 

"autocomplPop配置
let g:AutoComplPop_IgnoreCaseOption=1

"supertab doesnot support lua
"let g:SuperTabRetainCompletionType=2
let g:SuperTabDefaultCompletionType="<C-X><C-O>" 

"TlistToggle
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
let Tlist_Use_Right_Window=1

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值