~ sleepyEDB /.vimrc

This .vimrc enables features such as a permanent status line at the bottom of the screen, forcing Vim to use the Kprinter dialog screen when the :hardcopy command is invoked, a 'Save changes?' dialog box upon exit, and a separate backup directory for automatic backup files.
" Set vim to non-vi compatible mode
set nocp

" Set line numbers to visible
set nu

" Set mouse to always available
set mouse=a

" Set the paste option to 'on'
set paste

" Set tabs to 4 spaces, and to automatic
" set autoindent
set tabstop=4

" Set the background to dark, and the color scheme to impact
set background=dark
colorscheme murphy

" Set syntax highlighting to always on
syntax enable

" Set automatic filetype detection to on
filetype on

" Abbreviations
abbr teh the

" Keep 500 lines of command line history
set history=500
 
" Do not change the title of the terminal
set notitle

" Set the information in the statusbar
set statusline=%F%m%r%h%w\ FORMAT=%{&ff}\ TYPE=%Y\ POS=%04l,%04v%p%%\ LEN=%L
"set statusline=%F%m%r%h%w\ FORMAT=%{&ff}\ TYPE=%Y\ ASCII=\%03.3b\ HEX=\%02.2B\ POS=%04l,%04v%p%%\ LEN=%L

" Set the statusline to always be shown
set laststatus=2

" Set vim to use the kprinter print dialog
set printexpr=system('kprinter'\ .\ '\ '\ .\ v:fname_in)\ .\ delete(v:fname_in)\ +\ v:shell_error

" Set clipboard to 'unnamed'
set clipboard=unnamed

" Show the cursor position at all times
set ruler

" Display incomplete commands
set showcmd

" Set line breaks to on
set lbr

" * Search & Replace

" make searches case-insensitive, unless they contain upper-case letters:
set ignorecase
set smartcase

" show the `best match so far' as search strings are typed, and highlight them as well:
set hlsearch
set incsearch

" assume the /g flag on :s substitutions to replace all matches in a line:
set gdefault

" Set the confirm option to ask if changes should be saved before exiting:
set confirm 

" Prevent vim from creating backup files
"set nobackup
"set nowritebackup

" Write backup files to a specific directory
set backup
set backupdir=/home/Documents/Vim_Backups/

" * Keystrokes -- Moving Around

" Better tab navigation  [thanks, jocafa!  :)  ]
map th :tabprev<CR> 
map tl :tabnext<CR> 
map tn :tabnew<CR> 
map td :tabclose<CR>

" page down with <Space> (like in `Lynx', `Mutt', `Pine', `Netscape Navigator',
" `SLRN', `Less', and `More'); page up with - (like in `Lynx', `Mutt', `Pine'),
" or <BkSpc> (like in `Netscape Navigator'):
noremap <Space> <PageDown>
noremap <-> <PageUp>

" The following pertains to the Bash-support vim script, available at:  
" http://www.vim.org/scripts/script.php?script_id=365

let g:BASH_AuthorName   = 'Joe The User'     
let g:BASH_AuthorRef    = 'JTU'                         
let g:BASH_Email        = 'joetheuser@example.com'
let g:BASH_Company      = 'JoeUser LLC'