set nocompatible syntax on " Vundle magic let hasVundle = 1 if !filereadable(expand('~/.vim/bundle/Vundle.vim/README.md')) echo "Installing Vundle\n" silent !mkdir -p ~/.vim/bundle silent !git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim let hasVundle = 0 endif filetype off set rtp+=~/.vim/bundle/Vundle.vim call vundle#begin() Plugin 'VundleVim/Vundle.vim' Plugin 'ctrlpvim/ctrlp.vim' Plugin 'ervandew/supertab' Plugin 'google/vim-searchindex' Plugin 'jiangmiao/auto-pairs' Plugin 'rakr/vim-one' Plugin 'rbgrouleff/bclose.vim' Plugin 'roblillack/vim-bufferlist' Plugin 'scrooloose/syntastic' Plugin 'vim-scripts/indentpython.vim' if hasVundle == 0 :PluginInstall end call vundle#end() filetype plugin indent on " Line & column numbers set number set ruler " Indentation & co. set autoindent set expandtab au BufNewFile,BufRead *.py \ set autoindent | \ set colorcolumn=80 | \ set expandtab | \ set fileformat=unix | \ set filetype=python | \ set softtabstop=4 | \ set shiftwidth=4 | \ set tabstop=4 | " UTF8 or die set encoding=utf8 " Show trailing whitespaces and tabs set list lcs=trail:·,tab:»· " Color scheme & font set background=dark colorscheme one set gfn=Hack:h12 " Inconsolata:h14 " Misc let g:SuperTabDefaultCompletionType = "" let g:SuperTabLongestHighlight = 1 set clipboard=unnamed " Enable clipboard features set complete-=i set hlsearch " Highlight search results set mouse=a " Enable mouse features set whichwrap+=<,>,h,l,[,] " Go to previous/next line when at end of line set wildignore+=aws/*,logs/*,*.so,*.swp,*/tmp/*,*virtualenv*,*.zip " Key bindings nmap :call BufferList() nmap :Bclose nmap :CtrlP . cabbrev cws %s/\s\+$//e " Clear whitespaces command! W w " Allow Shift+Arrow text selection nmap v nmap v nmap v nmap v vmap vmap vmap vmap imap v imap v imap v imap v if has("gui_macvim") " Do not show scrollbars set guioptions-=l set guioptions-=r " Allow tabs navigation nmap :tabnext nmap :tabprev imap :tabnext imap :tabprev endif