" Vimrc file, for configuring Vim's behavior " Travis Hudson (2010.9.14) -- (2011.5.19) "set number " Show line numbers set tabstop=4 " Number of spaces in a tab set shiftwidth=4 " Number of spaces to auto-indent set expandtab " Convert tabs to spaces "set nowrap " Don't wrap lines set ignorecase " Ignore case when searching set autoindent " for prose: " gj and gk to page up or page down " [s and ]s to scroll to misspelled words, z= to see corrections, zg/zug to add/remove from dict " recompile the spelling file after making a change manually: :mkspell! ~/.vim/spell/en.utf-8.add " see spelling information: :spellinfo, turn off spell check: :set nospell "set lbr " linebreak, wrap at spaces, not mid-word "set textwidth=80 "set spell spelllang=en_us set pastetoggle= " Press F2 before and after pasting code :nmap :set invnumber " Press F3 to toggle line numbers " Indnet xml on map :1,$!xmllint --format - " Enter an escape character: 'ctrl' + 'v' + '[' " Set the @h macro to output a blank html page, does not rely on auto-indenting :let @h="i\n\t\n\n\n\n\nkko\t" " Set the @j macro to output a blank java program, does not rely on auto-indenting :let @j="ipublic class {\n\tpublic static void main(String[] args) {\n}\n}\ngwwi " " Allow indenting of xml " :filetype indent on