set foldmethod=syntax
set foldlevelstart=99
-" Show line numbers.
-set number
-set numberwidth=4
-
" Scroll five lines ahead of cursor.
set scrolloff=5
" Turn off error bells and visual bell
set noeb vb t_vb=
-" Set tabs to width 4.
+" Set tabs to width 2.
filetype plugin indent on
set shiftwidth=2
set softtabstop=2
set tabstop=2
set expandtab
-" language-specific settings
+" language-specific settings: tab width is 4 for python
autocmd FileType python setlocal shiftwidth=4 softtabstop=4 tabstop=4
" Allow backspacing over everything in insert mode.
" Set the color scheme to desert.
colorscheme desert
+" Set custom whitespace display
+set list
+set showbreak=↪\
+set listchars=tab:\ \ →,eol:↲,nbsp:␣,trail:•,extends:⟩,precedes:⟨
+
" Unmap the arrow keys to prevent bad habits.
noremap <Up> ""
noremap! <Up> <Esc>