" ------------------------------------- " options I want for all files " ------------------------------------- set nocompatible set nu set showmode set ruler set noautoindent set background=dark " in general, ignore case in searches set ignorecase " ignore case in searches where pattern is all lowercase set smartcase " highlight found patterns set hlsearch " jump to results before pattern complete " set incsearch " filetype specific options :filetype on " uses filetype-specific plugins in ~/.vim/ftplugin :filetype plugin on " turn syntax hilighting on if capable of color if has('syntax') && &t_Co > 3 syntax on endif " have 50 lines of vim history set history=50 " always have a status line with full filename, ruler, etc set laststatus=2 set statusline=%<%F\ %h%m%r\ %y%=%-14.(%l,%c%V%)\ %P " ------------------------------------- " Key Mappings " ------------------------------------- :let mapleader = "," " spell check word under cursor (,sw) map sw :!echo \| aspell -d british -a -- " spell check the current file ( replaces file ) map sf :w!:!aspell check %:e! % " cycle through windows with ,w nnoremap w w " toggle paste mode nnoremap p :set invpaste paste? " toggle number/nonumber nnoremap n :set invnumber number? " scroll w/ cursor remaining on same place in screen :map 1 :map 1 filetype plugin indent on " ------------------------------------- " Abbreviations " ------------------------------------- iab _DATE_ =strftime("%F") iab _TIME_ =strftime("%H:%M:%S %p") iab _TS_ =strftime("%A %F %H:%M:%S %p") " ------------------------------------- " script configuration " ------------------------------------- " tag explorer should do a verical window on the right side :let TE_Use_Right_Window = 1 " showmarks should only how MY marks [a-zA-Z] :let showmarks_include="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"