Skip to content

Instantly share code, notes, and snippets.

@zhang-ning
Last active December 28, 2015 20:59
Show Gist options
  • Save zhang-ning/7561632 to your computer and use it in GitHub Desktop.
Save zhang-ning/7561632 to your computer and use it in GitHub Desktop.
vimrc
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" let Vundle manage Vundle
" required!
Bundle 'gmarik/vundle'
" My bundles here:
"
" original repos on GitHub
Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non-GitHub repos
Bundle 'git://git.wincent.com/command-t.git'
Bundle 'scrooloose/nerdtree'
Bundle 'scrooloose/syntastic'
" has too many bug
"Bundle 'fholgado/minibufexpl.vim'
Bundle 'altercation/vim-colors-solarized'
Bundle 'endel/vim-github-colorscheme'
Bundle 'Lokaltog/vim-powerline'
Bundle 'Shutnik/jshint2.vim'
filetype plugin indent on " required!
" Disable swapfile and backup {{{
set nobackup
set noswapfile
"remap leader key{{{
let mapleader=','
"set completeopt-=preview
set autoindent
set tabstop=2 " tab width is 4 spaces
set shiftwidth=2 "
set softtabstop=2
set expandtab
set textwidth=300
set t_Co=256
set number
set hidden
set showmatch
set autoread
set title
set ruler
syntax on
set incsearch
set hls
set laststatus=2
set encoding=utf-8
set wildmenu
"set tags+=./tags
set background=dark
if has('gui_running')
colorscheme github
else
colorscheme solarized
endif
set guioptions-=m
set guioptions-=T
set guioptions-=r
set guioptions-=l
"mapping
nmap <F2> :NERDTreeToggle <cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment