Skip to content

Instantly share code, notes, and snippets.

@micromaomao
Created August 4, 2016 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micromaomao/f11bd78abba53328d5cf6729c6ffd43a to your computer and use it in GitHub Desktop.
Save micromaomao/f11bd78abba53328d5cf6729c6ffd43a to your computer and use it in GitHub Desktop.
My new .vimrc
set nocompatible " be iMproved, required
filetype off " required
" set the runtime path to include Vundle and initialize
set rtp+=~/.vim/bundle/Vundle.vim
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'
" Tree
Plugin 'scrooloose/nerdtree'
Plugin 'bling/vim-airline'
let g:airline_powerline_fonts = 1
Plugin 'vim-airline/vim-airline-themes'
let g:airline_theme='solarized'
set background=light
" Real time git diff
Plugin 'airblade/vim-gitgutter'
Plugin 'altercation/vim-colors-solarized'
" Relative line numbers
Plugin 'myusuf3/numbers.vim'
Plugin 'digitaltoad/vim-pug'
" :ExecuteBuffer
" :ExecuteSelction
Plugin 'JarrodCTaylor/vim-shell-executor'
Plugin 'terryma/vim-multiple-cursors'
" Auto indent width
Plugin 'tpope/vim-sleuth'
" ES6
Plugin 'othree/yajs.vim'
Plugin 'mxw/vim-jsx'
Plugin 'valloric/YouCompleteMe'
Plugin 'nathanaelkane/vim-indent-guides'
let g:indent_guides_enable_on_vim_startup = 1
Plugin 'tpope/vim-surround'
" Delete and insert stuff in pairs
Plugin 'jiangmiao/auto-pairs'
let g:AutoPairsFlyMode = 1
let g:AutoPairsShortcutBackInsert = '<C-l>'
" All of your Plugins must be added before the following line
call vundle#end() " required
filetype plugin 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
map ,n :NERDTreeToggle<CR>
" Auto open NERDTree
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 0 && !exists("s:std_in") | NERDTree | endif
let g:airline#extensions#tabline#enabled = 1
syntax enable
set number
set expandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
setlocal sw=2 sts=2 et
set autoindent
set tags+=.git/tags
set nowrap
setlocal spell spelllang=en_us
set cursorline
set cursorcolumn
colorscheme solarized
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment