nofxx /.vimrc

VIm
set nocompatible

" prevent annoying behavior of some keys in selection mode
"vunmap p
" vunmap d
" vunmap u

" CTRL-Z undoes even in visual/selection mode
vnoremap  u

"inoremap  ghb

" F7 runs make
nnoremap  :w:make
inoremap  :w:make
vnoremap  :w:make

" F7 runs make run
nnoremap  :w:make run
inoremap  :w:make run
vnoremap  :w:make run

" Make cursor keys ignore wrapping
nnoremap  gk
inoremap  gk
nnoremap  gj
inoremap  gj
nnoremap  g0
inoremap  g0
nnoremap  g$
inoremap  g$

" CTRL-T and CTRL-D indent and unindent blocks
inoremap  
nnoremap  
vnoremap  >
vnoremap  

" CTRL-TAB inserts a tab character (i.e., does not replace tab with spaces)
inoremap  

" CTRL-R reloads the ~/.vimrc file
nnoremap  :source ~/.vimrc
inoremap  :source ~/.vimrc
vnoremap  :source ~/.vimrc

" CTRL-F does Find dialog instead of page forward
noremap  :promptfind
vnoremap  y:promptfind "
onoremap  :promptfind
inoremap  :promptfind
cnoremap  :promptfind

" CTRL-H does Replace dialog instead of character left
noremap  :promptrepl
vnoremap  y:promptrepl "
onoremap  :promptrepl
inoremap  :promptrepl
cnoremap  :promptrepl

set number
set ruler
set showcmd
"set co=80
"set lines=25

set showmatch       " show matching braces

set history=500

set expandtab
set tabstop=4
set autoindent
set smartindent
set shiftwidth=4

"if has("vms")
"  set nobackup
"else
"  set backup
"endif

set incsearch   " incremental search
set ignorecase  " search ignores case

" turn off error beep/flash
set noerrorbells
set visualbell 
set t_vb=   
if has('autocmd')
    autocmd GUIEnter * set vb t_vb=
endif 

if &t_Co > 2 || has("gui_running")
  syntax on
  set hlsearch
  nohlsearch
endif

colorscheme darkblue