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 " Turn off error bells and visual bell
31 " Set up autoindentation.
35 " Set tabs to width 4.
41 " Allow backspacing over everything in insert mode.
42 set backspace=indent,eol,start
44 "Highlight bad spacing.
45 highlight BadSpacing term=standout ctermbg=cyan
48 " Highlight tabulators and trailing spaces
49 autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
50 " Only highlight trailing space in tab-filled formats
51 autocmd FileType help,make match BadSpacing / *$/
54 " Highlight search terms.
60 " Display command and location status.
64 " Multiple windows are equally sized and open in reading order.
66 set splitbelow splitright
71 " Enlarge history and undo/redo buffers.
75 " Reset colors to a clean state.
76 if !has('gui_running')
80 " Enable syntax highlighting.
83 " Force vim to sync syntax highlighting from the beginning of the file.
86 " Set the color scheme to desert.
89 " Unmap the arrow keys to prevent bad habits.
97 noremap! <Right> <Esc>
99 " Automatically reload the .vimrc when changes are made to it
100 au! BufWritePost .vimrc source %