" set autoindent set backspace=indent,eol,start set cursorline set encoding=utf8 set expandtab set fileencoding=utf8 set fileencodings=ucs-bom,utf8,cp950,gbk,latin1 set guifont=Inconsolata:h12 set hlsearch set ignorecase set incsearch set laststatus=2 set lazyredraw set list set listchars=tab:▷⋅,trail:· set mouse= set nobomb set nocompatible set nofoldenable set ruler set scrolloff=3 set secure set shiftwidth=4 set showmatch set smartcase set t_Co=256 set visualbell set wildmenu syntax on " " color schema set background=dark colo Tomorrow-Night highlight Search cterm=none ctermbg=blue " let g:DisableAutoPHPFolding = 1 let g:indent_guides_auto_colors = 0 let g:indent_guides_enable_on_vim_startup = 1 hi IndentGuidesEven ctermbg=8 hi IndentGuidesOdd ctermbg=236 " " mapping map q: :q nmap [Z W nmap :TagbarToggle nmap w nnoremap p p`] vmap (expand_region_shrink) vmap v (expand_region_expand) vnoremap p p`] vnoremap y y`] " filetype off set rtp+=~/.vim/bundle/vundle/ call vundle#rc() " Bundle "gmarik/vundle" " Bundle "bonsaiben/bootstrap-snippets" Bundle "ctrlpvim/ctrlp.vim" Bundle "garbas/vim-snipmate" Bundle "godlygeek/csapprox" Bundle "gregsexton/gitv" Bundle "honza/vim-snippets" Bundle "itchyny/lightline.vim" Bundle "majutsushi/tagbar" Bundle "MarcWeber/vim-addon-mw-utils" Bundle "motus/pig.vim" Bundle "nathanaelkane/vim-indent-guides" Bundle "sheerun/vim-polyglot" Bundle "spf13/PIV" Bundle "terryma/vim-expand-region" Bundle "tomtom/tlib_vim" Bundle "tpope/vim-fugitive" Bundle "tpope/vim-surround" " filetype plugin indent on let g:ctrlp_use_caching = 0 let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files . -co --exclude-standard', 'find %s -type f'] let g:SuperTabDefaultCompletionType = "context" let g:vim_json_syntax_conceal = 0 let mapleader="\" " " other au BufNewFile,BufRead *.go set filetype=go au BufNewFile,BufRead *.sls set filetype=yaml au BufNewFile,BufRead *.sls set shiftwidth=2 au BufNewFile,BufRead *.mk set noexpandtab au BufNewFile,BufRead *.psgi setf perl au BufNewFile,BufRead *.rb set shiftwidth=2 au BufNewFile,BufRead *.yaml set shiftwidth=2 au BufNewFile,BufRead *.yml set shiftwidth=2 au BufNewFile,BufRead Makefile set noexpandtab au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif autocmd BufEnter * silent! lcd %:p:h autocmd BufReadPost COMMIT_EDITMSG exe "normal! gg"