" github.com/samnang/dotfiles/blob/master/vimrc " http://nvie.com/posts/how-i-boosted-my-vim/ " http://learnvimscriptthehardway.stevelosh.com/chapters/52.html " May install in the future: " Git wrapper, similar to magit: 'https://github.com/tpope/vim-fugitive' " https://github.com/tony/vim-config " Plugins for review: " 'msanders/snipmate.vim' " 'godlygeek/tabular' " 'plasticboy/vim-markdown' runtime bundle/vim-pathogen/autoload/pathogen.vim execute pathogen#infect() set nocompatible " Be iMproved let mapleader="," " set leader early as otherwise it wouldn't work filetype plugin indent on " ----- general settings ----- set encoding=utf-8 set ff=unix set number set clipboard=unnamedplus set showmatch " show matching brackets set incsearch " Find as you type search set hlsearch " Highlight search terms set ignorecase " Case-insensitive searching. set smartcase " But case-sensitive if expression contains a capital letter. set history=1000 " remember more commands and search history set undolevels=1000 " use many levels of undo set nobackup set noswapfile set tabstop=4 set shiftwidth=4 set textwidth=80 set cc=81 set list set listchars=tab:>-,trail:~ map 1 :diffget 2 :diffupdate map 2 :diffget 3 :diffupdate map 3 :diffget 4 :diffupdate autocmd InsertEnter * :let @/="" autocmd InsertLeave * :let @/="" "set expandtab map Q @ map :tabprevious map m :tabnext syntax enable set background=dark colorscheme distinguished " remove trailing whitespaces on save autocmd BufWritePre * :%s/\s\+$//e " save file with root permissions cmap w!! w !sudo tee % >/dev/null " Markdown autocmd BufRead,BufNew *.md set filetype=markdown " airline set laststatus=2 let g:airline_theme = 'powerlineish' "let g:airline#extensions#tabline#enabled = 1 " make tabs look crazy " only enable trailing whitespace checking let g:airline#extensions#whitespace#checks = [ 'trailing' ] let g:airline#extensions#syntastic#enabled = 0 " Unite nnoremap :Unite file_rec/async " Start interactive EasyAlign in visual mode (e.g. vip) vmap (EasyAlign) " Start interactive EasyAlign for a motion/text object (e.g. gaip) nmap ga (EasyAlign)