Download the plain text (non-html) version.
"~/.vimrc
if filereadable("/etc/vim/vimrc")
source /etc/vim/vimrc
endif
set nocompatible
set backspace=indent,eol,start
if has("vms")
set nobackup
else
set backup
endif
set ffs=unix,mac,dos
set viminfo+=! " ensure it can save viminfo
set isk+=_,$,@,%,#,-,?,%,& " none of these should be word dividers, so make them not be
set lz " do not redraw while running macros (much faster) (LazyRedraw)
set history=56
set shortmess=at
set ruler
set rulerformat=%15(%c%V\ %p%%%)
set showcmd
set showmode
set showtabline=1
" set spell
" set spelllang=en_ca,en_gb,en_us,en
set startofline
set incsearch
set smartindent
set cindent
set noerrorbells
set nowrap
" set number
set showmatch
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set nosmarttab
" set mouse=a " use mouse everywhere - turns out I don't like this
set ignorecase
set smartcase
set gcr=a:blinkon0
set selectmode=mouse
set mousehide
set ttyfast
set ttybuiltin
set nolist
set printheader=%<%F%h%=%N
" filetail(buff#)[+][RO][GZ][help][Preview] [fileformat]:[filetype]:[charset] [line,col] [% of doc]
set statusline=%t(%1.3n)%m%r%{VarExists('b:gzflag','\ [GZ]')}%h%w\ %([%{&ff}]%)%(:%y%)%(:[%{&fenc}]%)\ %=[%1.7l,%1.7c]\ \ [%p%%]
" set statusline=%r%h%w\ %([%{&ff}]%)%(:%y%)%(:[%{&fenc}]%)\ BUFF[%1.20n]%=%1.7l,%1.7c\ \ [%p%%]
set laststatus=2 " always show the status line
set guipty " allegedly improves terminal emulation
set cuc " highlight cursor screen line
set pdev=%printer_name%@%printer_host%
set hidden
set wildmenu " together with wildmode makes shell-like completion
set wildmode=list:longest
" highlight embedded code
let perl_extended_vars=1
let php_sql_query=1
let php_htmlInString=1
let php_folding=1
let php_parent_error_close=1
let html_use_css=1
let g:calendar_monday=1
if has("autocmd")
autocmd FileType text setlocal textwidth=88
filetype on
filetype plugin on " load filetype plugins
filetype indent on
filetype plugin indent on
autocmd BufEnter * :syntax sync fromstart " ensure every file does syntax highlighting (full)
" jump to last position when reopening a file
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
autocmd FileType text setlocal textwidth=88
else
set autoindent
endif
if &t_Co>2 || has("gui_running")
syntax on
set hlsearch
endif
if has("gui_running")
cab Q :quit!
else
cab Q q
endif
cab W w
function VarExists(var, val)
if exists(a:var) | return a:val | else | return '' | endif
endfunction
set background=dark
set nocursorcolumn
set cursorline
set foldenable
set foldcolumn=4
set foldmethod=indent
set foldminlines=2
set foldlevel=4
" Do not auto-open folds
" set foldopen=