" Eric Andreychek's .vimrc set nocompatible " turn these ON: set digraph esckeys hidden ruler showcmd wildmenu smartindent expandta +b 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 <NUL> map <C-Z> :shell<CR> map ,v :e ~/.vimrc<CR> map ,F :view $VIMRUNTIME/filetype.vim map ,SO :source $VIMRUNTIME/syntax/ map ,V :view $VIMRUNTIME/syntax/ map <C-A> <Home> map <C-E> <End> " syntax coloring!! :-) syntax on " some colors: "white on black" hi comment ctermfg=darkgreen ctermbg=black guifg=darkgreen guibg=bla +ck " 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 "\<tab>" elseif "backward" == a:direction return "\<c-p>" else return "\<c-n>" endif endfunction inoremap <S-tab> <c-r>=InsertTabWrapper ("backward")<cr> inoremap <tab> <c-r>=InsertTabWrapper ("forward")<cr>
In reply to Re: Vim configs (slightly OT)
by andreychek
in thread Vim configs (slightly OT)
by djw
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |