set title		"change terminal title
set showmatch		"show pairs of brackets
set showcmd		"show command being typed
set clipboard+=unnamed

syntax on
filetype plugin on
autocmd SwapExists *:let :v:swapchoice = 'e'	"automatically choose edit if swap already exists
autocmd VimEnter * if argc() is 0 | Explore | endif

set cursorline		"highlight cursorline
set number		"show lineno's
set foldcolumn=1	"show folding column
set statusline=%n:\ %f%m%r%h%w\ [%l-%L,%v-%V][%p%%]
set ruler
set rulerformat=%25(%n%m%r:\ %Y\ [%l,%v]\ %p%%%)

colorscheme mustang

set vb t_vb=
set mouse=a		"enable mouse clicking in terminal


"searching

	set ignorecase	"ignore case zhen searching
	set smartcase	"override 'ignorecase' when end of search has been achieved
	set wrapscan	

au! BufWritePost .vimrc source %


"commands
	
	
"change cursor on insert enter/leave
	autocmd InsertEnter * normal!l
	autocmd InsertEnter * silent !osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Solid Colors 2\""
	autocmd InsertLeave * silent !osascript -e "tell application \"Terminal\" to set current settings of front window to settings set \"Solid Colors\""
