Created
November 30, 2012 14:02
-
-
Save rayshih/4175892 to your computer and use it in GitHub Desktop.
Ray Shih's Vim setting
This file contains 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
" Vundle setting start | |
set nocompatible " be iMproved | |
filetype off " required! | |
" Powerline setting | |
set laststatus=2 " Always show the statusline | |
set encoding=utf-8 " Necessary to show Unicode glyphs | |
let g:Powerline_symbols = 'fancy' | |
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 'tpope/vim-rails.git' | |
Bundle 'tpope/vim-surround' | |
Bundle 'tpope/vim-eunuch' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'tomtom/tcomment_vim' | |
Bundle 'kchmck/vim-coffee-script' | |
Bundle 'nathanaelkane/vim-indent-guides' | |
Bundle 'uguu-org/vim-matrix-screensaver' | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'Townk/vim-autoclose' | |
Bundle 'wgibbs/vim-irblack' | |
Bundle 'juvenn/mustache.vim' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'rorymckinley/vim-rubyhash' | |
" snipmate | |
Bundle "MarcWeber/vim-addon-mw-utils" | |
Bundle "tomtom/tlib_vim" | |
Bundle "honza/snipmate-snippets" | |
Bundle 'garbas/vim-snipmate' | |
" vim-scripts repos | |
Bundle 'Align' | |
" Bundle 'L9' | |
" Bundle 'FuzzyFinder' | |
Bundle 'mru.vim' | |
" non github repos | |
" Bundle 'git://git.wincent.com/command-t.git' | |
" ... | |
filetype plugin indent on " required! | |
" Vundle setting end | |
syntax on | |
" search | |
set hlsearch | |
set incsearch | |
set ignorecase | |
set smartcase | |
set number | |
set backspace=2 | |
" setup external vimrc | |
set exrc | |
set secure | |
" indent setting | |
set noexpandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
" NerdTree setting | |
let NERDTreeIgnore = ['\.pyc$'] | |
" color | |
" colorscheme ir_black | |
" file type setting | |
autocmd BufNewFile,BufRead Gemfile set filetype=ruby | |
autocmd BufNewFile,BufRead Capfile set filetype=ruby | |
" cmdline editing | |
cnoremap <C-A> <Home> | |
cnoremap <C-F> <Right> | |
cnoremap <C-B> <Left> | |
cnoremap <Esc>b <S-Left> | |
cnoremap <Esc>f <S-Right> | |
" foldmethod | |
autocmd FileType ruby set foldmethod=syntax | |
autocmd FileType ruby set foldlevel=100 | |
" try to correct ruby version | |
set shell=/bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks~