version 5.1 " $Author: giles $ , $Date: 1999/02/05 02:58:07 $ " $Source: /home/giles/RCS/.vimrc,v $ , $Revision: 1.7 $ " set autoindent set autowrite set nobackup set backspace=2 set background=dark "set background=light " Insert the date in my format (partly) underlined iab Ydate =strftime(" %d %B %Y") ---------- set nocompatible set noerrorbells " esckeys: allow usage of cursor keys within insert mode set esckeys " formatoptions: Options for the "text format" command ("gq") " I need all those options (but 'o')! set formatoptions=cqrt " helpheight: zero disables this. set helpheight=0 " hlsearch : highlight search - show the current search pattern " This is a nice feature sometimes - but it sure can get in the " way sometimes when you edit. set nohlsearch "set hlsearch " ignorecase: ignore the case in search patterns? NO! set noignorecase " joinspaces: insert two spaces after a period with every " joining of lines. This is very nice! set joinspaces set laststatus=2 set report=0 set ruler set shiftwidth=3 set showcmd set showmatch set showmode set nostartofline set tabstop=3 " Set the colors for vim on "xterm" if &term=="xterm" set t_Co=8 " "terminal has eight colors" set t_Sb=[4%dm " escape sequence for background set t_Sf=[3%dm " escape sequence for foreground endif set title " Disable the suspend for ^Z. " I use Vim under "screen" where a suspend would lose the " connection to the " terminal - which is what I want to avoid. map :shell " *********************** " * Giles's Mapping(s) * " *********************** map _cil :w:!ci -l %:e! " Set up some commands for particular file types: " Clear all autocommands first: au! au BufRead *.txt,*.text,*.sgml,pico*,mutt* set tw=75 au BufRead *.txt,*.text,*.sgml,pico*,mutt* set noai au BufNewFile *.txt,*.text,*.sgml,pico*,mutt* set tw=75 au BufNewFile *.txt,*.text,*.sgml,pico*,mutt* set noai au BufNewFile,BufRead .tfrc so $VIM/vim61/syntax/tf.vim au BufNewFile,BufRead *.sgml so ~/.vimrc.sgml " source ~/.vimrc.html so $VIM/vim61/syntax/syntax.vim so ~/bin/ls.vim hi Normal guibg=#000000 guifg=#ffffff