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.
15 " Set up autoindentation.
19 " Example filetype-specific setting:
21 " autocmd filetype python set expandtab
29 " Scroll five lines ahead of cursor.
32 " Turn off error bells and visual bell
35 " Set tabs to width 4.
36 filetype plugin indent on
42 " language-specific settings
43 autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4
45 " Allow backspacing over everything in insert mode.
46 set backspace=indent,eol,start
48 "Highlight bad spacing.
49 highlight BadSpacing term=standout ctermbg=cyan
52 " Highlight tabulators and trailing spaces
53 autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
54 " Only highlight trailing space in tab-filled formats
55 autocmd FileType help,make match BadSpacing / *$/
61 " Display command and location status.
65 " Multiple windows are equally sized and open in reading order.
67 set splitbelow splitright
72 " Enlarge history and undo/redo buffers.
76 " Reset colors to a clean state.
77 if !has('gui_running')
81 " Enable syntax highlighting.
84 " Force vim to sync syntax highlighting from the beginning of the file.
87 " Set the color scheme to desert.
90 " Unmap the arrow keys to prevent bad habits.
98 noremap! <Right> <Esc>
100 " Automatically reload the .vimrc when changes are made to it
101 au! BufWritePost .vimrc source %