Created
August 27, 2014 15:21
-
-
Save yueyoum/d6b1bc3f6d1c99532a08 to your computer and use it in GitHub Desktop.
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
syntax on | |
set nocompatible | |
set expandtab | |
set tabstop=4 | |
set shiftwidth=4 | |
set softtabstop=4 | |
set cindent | |
set ignorecase | |
set showmatch | |
set matchtime=2 | |
set hlsearch | |
set incsearch | |
set ruler | |
set number | |
set numberwidth=5 | |
set nocursorline | |
set backspace=indent,eol,start | |
set history=100 | |
set nofoldenable | |
set ttyfast | |
set pastetoggle=<F2> | |
set laststatus=2 | |
" Custom Key bindings | |
vnoremap > >gv | |
vnoremap < <gv | |
nnoremap <C-h> <C-w>h | |
nnoremap <C-j> <C-w>j | |
nnoremap <C-k> <C-w>k | |
nnoremap <C-l> <C-w>l | |
inoremap <C-e> <End> | |
inoremap <C-a> <Home> | |
inoremap <C-l> <C-x><C-o> | |
if has("gui_running") | |
set guifont=ubuntu\ mono\ 10 | |
set cursorline | |
set colorcolumn=0 | |
" No menu or toolbar | |
set guioptions-=m | |
set guioptions-=T | |
" No scrollbars | |
set guioptions-=L | |
set guioptions-=l | |
set guioptions-=R | |
set guioptions-=r | |
set guioptions-=b | |
set guioptions+=a | |
endif | |
filetype off | |
" Bundles settings | |
set rtp+=~/.vim/bundle/vundle/ | |
call vundle#rc() | |
Bundle 'gmarik/vundle' | |
Bundle 'kevinw/pyflakes-vim' | |
Bundle 'vim-scripts/Python-Syntax-Folding' | |
Bundle 'jimenezrick/vimerl' | |
Bundle 'Shougo/neocomplcache' | |
Bundle 'vim-scripts/TaskList.vim' | |
Bundle 'plasticboy/vim-markdown' | |
Bundle 'Lokaltog/vim-easymotion' | |
Bundle 'Lokaltog/vim-powerline' | |
Bundle 'kien/ctrlp.vim' | |
Bundle 'scrooloose/nerdtree' | |
Bundle 'fholgado/minibufexpl.vim' | |
Bundle 'terryma/vim-smooth-scroll' | |
Bundle 'pangloss/vim-javascript' | |
Bundle 'terryma/vim-multiple-cursors' | |
Bundle 'tomtom/tcomment_vim' | |
Bundle 'Raimondi/delimitMate' | |
Bundle 'kien/rainbow_parentheses.vim' | |
Bundle 'w0ng/vim-hybrid' | |
Bundle 'uarun/vim-protobuf' | |
Bundle 'nathanaelkane/vim-indent-guides' | |
Bundle 'mattn/webapi-vim' | |
Bundle 'mattn/gist-vim' | |
filetype plugin indent on | |
set t_Co=256 | |
colorscheme hybrid | |
set background=dark | |
set colorcolumn=81 | |
highlight ColorColumn ctermbg=234 | |
let g:ycm_global_ycm_extra_conf='~/.ycm_extra_conf.py' | |
let NERDTreeIgnore=['\.pyc$', '\.beam$', '\.o$', '\.so$'] | |
let g:vim_markdown_folding_disabled=1 | |
let g:neocomplcache_enable_at_startup=1 | |
let g:neocomplcache_enable_smart_case=1 | |
let g:neocomplcache_min_syntax_length=2 | |
let g:ctrlp_cmd='CtrlP ~/codes' | |
let g:ctrlp_clear_cache_on_exit=0 | |
let g:ctrlp_max_depth=10 | |
let g:ctrlp_lazy_update=1 | |
let g:ctrlp_mruf_max=50 | |
let g:ctrlp_mruf_include='\.py$\|\.c$\|\.cpp$\|\.h$\|\.erl$' | |
let g:ctrlp_custom_ignore = { | |
\ 'dir': '\v[\/]\.(git|hg|svn|env)$', | |
\ 'file': '\v\.(bak|swp|so|pyc|o|beam|dump|gz|bz2|tar)$', | |
\} | |
noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 20, 2)<CR> | |
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 20, 2)<CR> | |
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 20, 4)<CR> | |
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 20, 4)<CR> | |
autocmd VimEnter * RainbowParenthesesToggle | |
autocmd Syntax * RainbowParenthesesLoadRound | |
autocmd Syntax * RainbowParenthesesLoadSquare | |
autocmd Syntax * RainbowParenthesesLoadBraces | |
autocmd FileType python setlocal completeopt-=preview | |
autocmd FileType ruby set tabstop=2 shiftwidth=2 softtabstop=2 | |
autocmd FileType eruby set tabstop=2 shiftwidth=2 softtabstop=2 | |
let g:indent_guides_start_level=1 | |
let g:indent_guides_guide_size=4 | |
hi IndentGuideOdd ctermbg=gray | |
hi IndentGuideEven ctermbg=lightgray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment