vimrc
"""" my vimrc
" GENERAL OPTIONS
set nocompatible " use vim defaults
filetype on " detect the type of file
set enc=utf-8
set history=1000 " How many lines of history to remember
set clipboard+=unnamed " turns out I do like is sharing windows clipboard
" WINDOWS OPTIONS
if has("gui_win32")
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set selectmode=mouse,key,cmd
set guifont=Andale_Mono:h10
"set guifont=Terminal:h9
"set guifont=Hyperfont:h8
"set guifont=Lucida_Console:h8
endif
" COLOR
colorscheme delek
" READING OPTIONS
set modeline modelines=1 " use settings from file being edited
" INPUT OPTIONS
set mouse=a " use the mouse
" use plugsin
:filetype plugin on
" DISPLAY OPTIONS
set background=light " better colors for white terminals
set number " show line numbers
set ruler " show line and column information
set notitle " don't set change terminal's title
set tabstop=8 " tabs are every 8 columns
set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<
set whichwrap=b,s,h,l,<,>,[,] " move freely between files
set laststatus=2 " always show status line. can also be set ls=2
set showmode " always show command or insert mode
set shortmess=lnrxI " brief messages, don't show intro
set showcmd " show partial commands
set more " use a pager for long listings
set lbr " wrap long lines, break at word, not character
syntax on " use syntax highlighting
" SAVING OPTIONS
set noexpandtab " don't change tabs into spaces
set backupext=~ " backup files end in ~
" EDITING OPTIONS
set backspace=2 " backspaces can go over lines
set autoindent " keep indenting at same level
"set cindent " cindent
set smartindent " guess indent level of new line
"set noerrorbells " turn off ringing bell
set novisualbell " turn off visual bell
"set t_vb= "visual bell, no sound at all
set visualbell t_vb= " turn off error beep/flash
set esckeys " allow arrow keys in insert mode
set showmatch " show matching brackets
set hidden " switch buffers without saving
" SEARCH OPTIONS
set hlsearch " set highlight search patterns
set incsearch " search while typing
set ignorecase " make searches case-insensitive
" MISCELLANEOUS OPTIONS
"set dictionary=/usr/share/dict/words " get words from system dictionary
set magic " regexp chars have special meaning
" FILETYPES (au = autocmd)
au filetype help set nonumber " no line numbers when viewing help
au filetype help nnoremap " Enter selects subject
au filetype help nnoremap " Backspace to go back
" OLD STUFF
" :if version >= 600
" set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<
" :elseif version >= 500
" set listchars=eol:$,tab:>-,trail:-,extends:+
" :endif
" MAPPINGS
"map :previous " map F1 to open previous buffer
"map :next " map F2 to open next buffer
"map :previous " right arrow (normal mode) switches buffers (excluding minibuf)
"map :previous " left arrow (normal mode) switches buffers (excluding minibuf)
map :Sex " up arrow (normal mode) brings up a file list
map :Tlist " down arrow (normal mode) brings up the tag list
" Ctrl-Tab goes to next tab
" map :tabnext
" imap :tabnext
" vmap :tabnext
" Ctrl-Shift-Tab goes to previous tab
" imap :tabprev
" map :tabprev
" vmap :tabprev
" Ctrl-t makes a new tab
" vmap :tabnew
" imap :tabnew
" map :tabnew
" Ctrl-w closes the tab
" map :tabclose
" imap :tabclose
" vmap :tabclose