" Change 2 to 4 for 4-space tabs (I use two-space) set tabstop=2 set softtabstop=2 set shiftwidth=2 set backspace=2 set expandtab " Enable syntax highlighting for different file types syntax on set showmatch set bg=dark " Display line numbers on left set number set textwidth=100 " When opening a new line and no filetype-specific indenting is enabled, " keep the same indent as the line you're currently on set autoindent " Highlight search results set hlsearch " Set 'nocompatible' to ward off unexpected things that your distro might " " have made, as well as sanely reset options when re-sourcing .vimrc set nocompatible " Use case-insensitive search, except when using capital letters set ignorecase set smartcase " Attempt to determine the type of a file based on its name and possibly its " " contents. Use this to allow intelligent auto-indenting for each filetype, " " and for plugins that are filetype specific. filetype indent plugin on " Add key-binding to escape from insert mode with 'jj' (ESC key is too far away :( ) imap jj " Add key-binding to reindent entire file with 'fxin' map fxin mzgg=G`z