.vimrc file
Categories:

This is mainly for gvim on Windows.

" Brian's vimrc file

set nocompatible
behave xterm
set selectmode=mouse
set co=90
set lines=40
syntax enable

set guifont=dejavu_sans_mono:h8
" set guifont=lucida_console:h9
" set guifont=courier_new:h10

set guioptions=agimr

" cursor options, namely, turn off blinking
set guicursor=n-v-c:block-Cursor/lCursor,ve:ver35-Cursor,o:hor50-Cursor,i-ci:ver25-Cursor/lCursor,r-cr:hor20-Cursor/lCursor,sm:block-Cursor,a:blinkon0

" print options
set printoptions=header:0,paper:letter

set ru

set autoindent
""set smartindent
""Don't outdent # comments when smartindent is enabled
""inoremap # X<C-H>#
filetype indent plugin on

set ffs=dos,unix
set dir=c:\\windows\\temp\\\\
set mousehide
set slm=cmd

" Searching options
set ignorecase smartcase
set showmatch
set hlsearch
set incsearch
" Define Alt-/ to clear the search highlighting
map <M-/> :nohlsearch<CR>

" set cut/copy keys
vnoremap <C-X> "*x
vnoremap <C-C> "*y

" set paste key
nnoremap \\Paste\\ "=@*.'xy'<CR>gPFx"_2x:echo<CR>
map  <C-V> \\Paste\\
imap <C-V> x<Esc>\\Paste\\"_s
cmap <C-V> <C-R>*
vmap <C-V> "-cx<Esc>\\Paste\\"_x