4 " Ignore certain file extensions when tab-completing.
5 set wildignore=*.swp,*.bak,*.pyc,*.class,*.o
7 " set filetype stuff to on
12 " Example filetype-specific setting:
14 " autocmd filetype python set expandtab
21 " Scroll five lines ahead of cursor.
24 " Set up autoindentation.
28 " Set tabs to width 4.
34 " Allow backspacing over everything in insert mode
35 set backspace=indent,eol,start
37 "Highlight bad spacing
38 highlight BadSpacing term=standout ctermbg=cyan
41 " Highlight tabulators and trailing spaces
42 autocmd BufNewFile,BufReadPre * match BadSpacing /\(\t\| *$\)/
43 " Only highlight trailing space in tab-filled formats
44 autocmd FileType help,make match BadSpacing / *$/
47 " Highlight search terms.
53 " Display command and location status.
57 " Multiple windows are equally sized and open in reading order.
59 set splitbelow splitright
64 " Enlarge history and undo/redo buffers
68 " Reset colors to a clean state.
69 if !has('gui_running')
73 " Enable syntax highlighting.
76 " Force vim to sync syntax highlighting from the beginning of the file.
79 " Set the color scheme to desert.
82 " Unmap the arrow keys to prevent bad habits.
90 noremap! <Right> <Esc>