Skip to content

Instantly share code, notes, and snippets.

@zhuangya
Created November 3, 2015 05:35
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 zhuangya/edb773db309e27c80c9b to your computer and use it in GitHub Desktop.
Save zhuangya/edb773db309e27c80c9b to your computer and use it in GitHub Desktop.
" Note: Skip initialization for vim-tiny or vim-small.
if 0 | endif
if has('vim_starting')
if &compatible
set nocompatible " Be iMproved
endif
" Required:
set runtimepath+=~/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand('~/.vim/bundle/'))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
" Refer to |:NeoBundle-examples|.
" Note: You don't set neobundle setting in .gvimrc!
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
NeoBundle 'Shougo/vimproc.vim', {
\ 'build' : {
\ 'windows' : 'tools\\update-dll-mingw',
\ 'cygwin' : 'make -f make_cygwin.mak',
\ 'mac' : 'make',
\ 'linux' : 'make',
\ 'unix' : 'gmake',
\ },
\ }
NeoBundle 'Shougo/unite.vim'
NeoBundle 'GertjanReynaert/cobalt2-vim-theme'
NeoBundle 'godlygeek/csapprox'
NeoBundle 'chrisbra/unicode.vim'
NeoBundle 'rhysd/committia.vim'
NeoBundle 'ntpeters/vim-better-whitespace'
NeoBundle 'mhinz/vim-startify'
NeoBundle 'chrisbra/vim-diff-enhanced'
NeoBundle 'gabesoft/vim-ags'
NeoBundle 'junegunn/vim-peekaboo'
NeoBundle 'moll/vim-node'
NeoBundle 'othree/es.next.syntax.vim'
NeoBundle 'bling/vim-airline'
set laststatus=2
let g:airline_powerline_fonts=1
let g:airline#extensions#whitespace#enabled = 1
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'ctrlpvim/ctrlp.vim'
let g:ctrlp_use_caching = 1
let g:ctrlp_clear_cache_on_exit = 0
let g:ctrlp_cache_dir = '$HOME/.vim/cache/ctrlp'
let g:ctrlp_max_files = 1000
let g:ctrlp_max_depth = 20
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/]\.(git|hg|svn)$',
\ 'fire': '\v\.(exe|so|dll)$',
\ }
let g:ctrlp_user_command = [
\ '.git', 'cd %s && git ls-files . -co --exclude-standard',
\ 'find %s -type f'
\ ]
let g:ctrlp_working_path_mode = 'ra'
NeoBundle 'tpope/vim-sensible'
NeoBundle 'tpope/vim-commentary'
NeoBundle 'ryanoasis/vim-devicons'
NeoBundle 'jreybert/vimagit'
call neobundle#end()
" Required:
filetype plugin indent on
let mapleader=","
filetype plugin indent on
syntax on
set nu
set sts=2
set ts=2
set shiftwidth=2
set tabstop=2
set shiftwidth=2
set softtabstop=2
set number
set mouse=a
set nocursorline
set expandtab
set undofile
set undodir=~/.vim/undodir
set undolevels=100000
set undoreload=100000
set ttyfast
set smartcase
set ignorecase
set whichwrap+=<,>,h,l,[,]
set wrap
set magic
set lazyredraw
set autoread
set ttyfast
set noswapfile
set nobackup
set t_Co=256
set completeopt-=preview
nnoremap gb :ls<CR>:b
map <D-1> 1gt
map <D-2> 2gt
map <D-3> 3gt
map <D-4> 4gt
map <D-5> 5gt
map <D-6> 6gt
map <D-7> 7gt
map <D-8> 8gt
map <D-9> 9gt
map <D-0> :tablast<CR>
map <C-j> :cn<CR>
map <C-k> :cp<CR>
colorscheme cobalt2
set guifont=Fira\ Mono\ Medium\ for\ Powerline\ Plus\ Nerd\ File\ Types\ Plus\ Pomicons:h12
" fix for `crontab -e`
set backupskip=/tmp/*,/private/tmp/*
" set up file type detection
autocmd BufNewFile,BufRead .eslintrc setlocal filetype=json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment