Skip to content

Instantly share code, notes, and snippets.

@classicemi
Last active October 30, 2016 09:12
Show Gist options
  • Save classicemi/95eff2a14d1b16c945b5736cb931645d to your computer and use it in GitHub Desktop.
Save classicemi/95eff2a14d1b16c945b5736cb931645d to your computer and use it in GitHub Desktop.
.vimrc
"======================"
" Vundle Configuration "
"======================"
autocmd BufWritePost $MYVIMRC source $MYVIMRC
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle
call vundle#begin()
Bundle 'gmarik/vundle'
Bundle 'scrooloose/nerdtree'
Bundle 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
Plugin 'posva/vim-vue'
Bundle 'airblade/vim-gitgutter'
Bundle 'Raimondi/delimitMate'
filetype plugin indent on
call vundle#end()
set laststatus=2
set t_Co=256
let g:Powerline_symbols= 'unicode'
set encoding=utf8
set updatetime=250
" Color Scheme
colorscheme default
set tabstop=2
set shiftwidth=2
set expandtab
set relativenumber
syntax on
set number
set ai
set guifont=Hack:h14
nmap <F2> :NERDTreeToggle<CR>
" NERDTree config
map <F2> :NERDTreeToggle<CR>
" 定义快捷键的前缀
let mapleader=";"
" 开启实时搜索功能
set incsearch
" 搜索时大小写不敏感
set ignorecase
" 关闭兼容模式
set nocompatible
" vim 自身命令行模式智能补全
set wildmenu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment