Created
June 18, 2013 07:57
-
-
Save zhuangya/5803459 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved | |
| filetype off " required! | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'gmarik/vundle' | |
| Bundle 'tpope/vim-fugitive' | |
| Bundle 'gcmt/breeze.vim' | |
| Bundle 'rizzatti/funcoo.vim' | |
| Bundle 'rizzatti/dash.vim' | |
| Bundle 'Floobits/floobits-vim' | |
| Bundle 'endel/vim-github-colorscheme' | |
| Bundle 'pangloss/vim-javascript' | |
| au Filetype javascript setlocal ts=2 sts=2 shiftwidth=2 | |
| Bundle 'chriskempson/base16-vim' | |
| Bundle 'plasticboy/vim-markdown' | |
| Bundle 'LustyJuggler' | |
| Bundle 'longline.vim' | |
| Bundle 'mattn/zencoding-vim' | |
| Bundle 'chriskempson/tomorrow-theme', {'rtp': 'vim/'} | |
| Bundle 'kien/ctrlp.vim' | |
| set wildignore+=*/tmp/*,*.so,*.swp,*.zip " MacOSX/Linux | |
| let g:ctrlp_custom_ignore = '\v[\/]\.(git|hg|svn)$' | |
| let g:ctrlp_cmd = 'CtrlPCurWD' | |
| Bundle 'rking/ag.vim' | |
| Bundle 'Lokaltog/vim-easymotion' | |
| Bundle 'kchmck/vim-coffee-script' | |
| "let coffee_make_options = '--bare --map' | |
| "let coffee_compile_vert = 1 | |
| au Filetype coffee setlocal ts=2 sts=2 sw=2 | |
| "au BufWritePost *.coffee silent CoffeeMake! -bm | cwindow | redraw! | |
| nnoremap <F9> :CoffeeCompile watch vert<cr> | |
| au BufNewFile,BufReadPost *.coffee setl foldmethod=indent nofoldenable scrollbind | |
| Bundle 'digitaltoad/vim-jade' | |
| au Filetype jade setlocal ts=2 sts=2 sw=2 | |
| Bundle 'godlygeek/csapprox' | |
| Bundle 'Lokaltog/vim-powerline' | |
| let g:Powerline_symbols='fancy' | |
| Bundle 'wavded/vim-stylus' | |
| au Filetype stylus setlocal ts=2 sts=2 sw=2 | |
| au BufWritePost,FileWritePost *.styl :silent !stylus -c <afile> | |
| Bundle 'nathanaelkane/vim-indent-guides' | |
| if has('gui_running') | |
| let g:indent_guides_enable_on_vim_startup=1 | |
| let g:indent_guides_color_change_percent=15 | |
| endif | |
| Bundle 'scrooloose/nerdcommenter' | |
| map <F7> :NERDTreeToggle<CR> | |
| Bundle 'scrooloose/nerdtree' | |
| Bundle 'scrooloose/syntastic' | |
| let g:syntastic_javascript_checkers=['jshint'] | |
| nnoremap <silent> <C-d> :lclose<cr>:bdelete<cr> | |
| cabbrev <silent> bd lclose\|bdelete | |
| Bundle 'Shougo/neocomplcache' | |
| let neocomplcache_enable_at_startup=1 | |
| let g:neocomplcache_enable_smart_case=1 | |
| let g:neocomplcache_enable_camel_case_completion=1 | |
| let g:neocomplcache_enable_underbar_completion=1 | |
| let g:neocomplcache_min_syntax_length=3 | |
| let g:neocomplcache_lock_buffer_name_pattern='\*ku\*' | |
| inoremap <expr><CR> neocomplcache#smart_close_popup() . "\<CR>" | |
| inoremap <expr><TAB> pumvisible() ? "\<C-n>" : "\<TAB>" | |
| autocmd FileType css setlocal omnifunc=csscomplete#CompleteCSS | |
| autocmd FileType html,markdown setlocal omnifunc=htmlcomplete#CompleteTags | |
| autocmd FileType javascript setlocal omnifunc=javascriptcomplete#CompleteJS | |
| autocmd FileType python setlocal omnifunc=pythoncomplete#Complete | |
| autocmd FileType xml setlocal omnifunc=xmlcomplete#CompleteTags | |
| filetype plugin indent on " Required! | |
| let mapleader="," | |
| set ttyfast | |
| set nostartofline | |
| nnoremap ; : | |
| vmap Q gq | |
| map <C-j> :bnext<CR> | |
| map <C-k> :bprev<CR> | |
| map <C-l> :tabn<cr> | |
| map <C-h> :tabp<cr> | |
| nmap <silent> ,/ :nohlsearch<CR> | |
| cmap w!! w !sudo tee % >/dev/null | |
| syntax enable | |
| "set guifont=Source\ Code\ Pro:h13 | |
| set guifont=Monaco:h13 | |
| set undodir=~/.vim/undodir | |
| set undofile | |
| set undolevels=1000 | |
| set undoreload=10000 | |
| set hlsearch | |
| set incsearch | |
| set lazyredraw | |
| set expandtab | |
| set shiftwidth=4 | |
| set shiftround | |
| set softtabstop=4 | |
| set ignorecase | |
| set smartcase | |
| set ruler | |
| set autoindent | |
| set copyindent | |
| set cindent | |
| set wrap | |
| set magic | |
| set laststatus=2 | |
| set autoread | |
| set wildmenu | |
| set t_Co=256 | |
| set noswapfile | |
| set nobackup | |
| set nowb | |
| set smarttab | |
| set encoding=utf-8 | |
| set backspace=indent,eol,start | |
| set cursorline | |
| set noerrorbells | |
| set novisualbell | |
| set mouse=a | |
| set t_vb= | |
| set tm=500 | |
| filetype plugin indent on | |
| set number | |
| colorscheme base16-pop | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment