" Eric Andreychek's .vimrc set nocompatible " turn these ON: set digraph esckeys hidden ruler showcmd wildmenu smartindent expandtab set visualbell showmatch title " turn these OFF: set noerrorbells nostartofline nohlsearch " non-toggles: set backspace=2 formatoptions=cqrt laststatus=2 shortmess=at textwidth=79 set whichwrap=<,>,h,l shiftwidth=4 softtabstop=4 set comments=b:#,:%,fb:-,n:>,n:) set list listchars=tab:ùð,trail:Ü set viminfo=%,'50,\"100,:100,n~/.viminfo " mappings: map Q gq map K map :shell map ,v :e ~/.vimrc map ,F :view $VIMRUNTIME/filetype.vim map ,SO :source $VIMRUNTIME/syntax/ map ,V :view $VIMRUNTIME/syntax/ map map " syntax coloring!! :-) syntax on " some colors: "white on black" hi comment ctermfg=darkgreen ctermbg=black guifg=darkgreen guibg=black " Make the status bar blue set t_mr=^[[0;1;37;44m " The bottom line is bold-white set t_me=^[[m " Shhhhh! set t_vb= " Mmmmm... tab completetion function! InsertTabWrapper(direction) let col = col('.') - 1 if !col || getline('.')[col - 1] !~ '\k' return "\" elseif "backward" == a:direction return "\" else return "\" endif endfunction inoremap =InsertTabWrapper ("backward") inoremap =InsertTabWrapper ("forward")