" Set nocompatible for Vim vice vi mode. Do it first since it may have side
" effects on other settings.
set nocompatible
set shell=/bin/sh
" Call par to reformat paragraphs to 80 chars wide
" Note that a '^M' is after the '80', denoting a carrage return
map ** {!}par 80
}
" For calling par with args. Note that the next line has a space after 'par'
" Note the '^V' after 'map', denoting a space
map * {!}par
behave xterm
set selectmode=mouse
highlight Normal guibg=grey90
highlight NonText guibg=grey80
highlight Constant gui=NONE guibg=grey95
highlight Special gui=NONE guibg=grey95
"so $VIM/syntax/perl.vim
"syntax on
set ai " always set autoindenting on
set bs=2
set co=110
"set cpoptions=ces$
set tabstop=4
set shiftwidth=4
set nu " Show line numbers
set backup
set backupdir=$TEMP
set expandtab " Tabs to spaces. CAREFUL with Makefiles!!
set icon
set incsearch
set lazyredraw
set ruler " show line and col number of cursor position
set selectmode=mouse
set showmatch
set showmode
set smartindent
set smarttab
set swapfile
"set textwidth=80
set terse
set tildeop
set viminfo='20,\"50
set visualbell
set warn
"set dir=~/tmp
set dir=$TEMP
set guifont=clean12,6x12
" Cut line for delineating snippets, etc.
:ab #- ------------------>%------------------>%------------------>%------------------
" Begin and end C-style comment header
:ab #b /*==============================================================================
:ab #e ==============================================================================*/
" C++ style header
:ab #h //==============================================================================
" ccdoc comment header
:ab #c //==========
//@{
//
//@}
//==========
" ccdoc comment
map *c A //@-
" Don't use Ex mode, use Q for formatting
map Q gq
" for finding identifiers. From :h tips
map _g :let efsave=&eflet &ef=tempname()exe ':!grep -n -w "" *.[ch] *.txt >'.&ef:cf:exe ":!rm ".&ef:let &ef=efsaveunlet efsave:cc
" Switch syntax highlighting on when the terminal has colors.
" Also switch on highlighting of the last used search pattern
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
" PGP commands for working current buffer
"augroup PGP
" au!
" au BufReadPost *.pgp :%!pgp -f
" au BufWritePre *.pgp :%!pgp -fc
"augroup END
" Security (PGP) stuff -- Mark beginning of block (ma), go to end of
" block, then type one of the following:
" \Pd: decrypt text, as filter
" \Pe: encrypt text, ascii armor, as filter
" \Pk: add public-key to my keyring
" \Ps: digitally sign, text, ascii-armor, filter
map \Pd :set lz0!'gpg -f:set nolz
map \Pe :set lz0!'gpg -etaf:set nolz
map \Pk :set lz0!'gpg -kaf:set nolz
map \Ps :set lz0!'gpg -staf:set nolz
" map *d {!}gpg -f
}
" map *e {!}gpg -etaf
}
" map *k {!}gpg -kaf
}
" map *s {!}gpg -staf
}
Mail me: Contact Jim