4 " Make tab-completion work more like bash.
8 " Ignore certain file extensions when tab-completing.
9 set wildignore=*.swp,*.bak,*.pyc,*.class,*.o,*.exe
11 " Set filetype stuff to on.
16 " Example filetype-specific setting:
18 " autocmd filetype python set expandtab
25 " Scroll five lines ahead of cursor.
28 " Set up autoindentation.
32 " Set tabs to width 4.
38 " Allow backspacing over everything in insert mode.
39 set backspace=indent,eol,start
41 "Highlight bad spacing.
42 highlight BadSpacing term=standout ctermbg=cyan
45 " Highlight tabulators and trailing spaces
46 autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
47 " Only highlight trailing space in tab-filled formats
48 autocmd FileType help,make match BadSpacing / *$/
51 " Highlight search terms.
57 " Display command and location status.
61 " Multiple windows are equally sized and open in reading order.
63 set splitbelow splitright
68 " Enlarge history and undo/redo buffers.
72 " Reset colors to a clean state.
73 if !has('gui_running')
77 " Enable syntax highlighting.
80 " Force vim to sync syntax highlighting from the beginning of the file.
83 " Set the color scheme to desert.
86 " Unmap the arrow keys to prevent bad habits.
94 noremap! <Right> <Esc>
96 " Automatically reload the .vimrc when changes are made to it
97 au! BufWritePost .vimrc source %