Please bear with us as we work to restore functionality to dotfiles.org.
syntax on
set history=1000
set hlsearch
set termencoding=latin-2
set fileencoding=utf-8
set encoding=utf-8
set showcmd
set wildmenu
set incsearch
set laststatus=2
set mouse=a
set background=dark
set tabstop=4
set shiftwidth=4
set scrolljump=5
set backspace=2
set comments=sr:/*,mb:*,ex:*/
set fo+=cr
set ignorecase smartcase
set statusline=%<%f\ %h%m%r%=%-20.(line=%l,col=%c%V,totlin=%L%)\%h%m%r%=%-40(,bytval=0x%B,%n%Y%)\%P
set scrolloff=15
set showmatch
set smartindent
let mapleader = ','
map ,fy :EnableFastPHPFolds
map ,fn :DisablePHPFolds
map :f :FuzzyFinderFile
map :b :FuzzyFinderBuffer
map :m :FuzzyFinderMruFile
map :c :FuzzyFinderMruCmd
let php_htmlInStrings = 1
let php_sql_query = 1
let php_parent_error_close = 1
set backupdir=~/backup/,/tmp
setlocal foldmethod=manual
map te :tabedit =expand("%:p:h") . "/"
map j
map k
map h
map l
map bd :Bclose
"Restore cursor to file position in previous editing session
set viminfo='10,\"100,:20,%,n~/.viminfo
au BufReadPost * if line("'\"") > 0|if line("'\"") <= line("$")|exe("norm '\"")|else|exe "norm $"|endif|endif
command! Bclose call BufcloseCloseIt()
function! BufcloseCloseIt()
let l:currentBufNum = bufnr("%")
let l:alternateBufNum = bufnr("#")
if buflisted(l:alternateBufNum)
buffer #
else
bnext
endif
if bufnr("%") == l:currentBufNum
new
endif
if buflisted(l:currentBufNum)
execute("bdelete! ".l:currentBufNum)
endif
endfunction
:se nu
"set correct working directory
function! CHANGE_CURR_DIR()
let _dir = expand("%:p:h")
exec "cd " . _dir
unlet _dir
endfunction
autocmd BufEnter * call CHANGE_CURR_DIR()
"! set correct working directory
set hidden
noremap :bprev
noremap :bnext
let g:buftabs_only_basename=1
set laststatus=2
let g:buftabs_in_statusline=1
highlight Pmenu term=NONE cterm=NONE ctermfg=7 ctermbg=5 gui=NONE guifg=White guibg=Magenta
highlight PmenuSel term=NONE cterm=NONE ctermfg=0 ctermbg=7 gui=NONE guifg=Black guibg=White
highlight PmenuSbar term=NONE cterm=NONE ctermfg=7 ctermbg=0 gui=NONE guifg=White guibg=Black
highlight PmenuThumb term=NONE cterm=NONE ctermfg=0 ctermbg=7 gui=NONE guifg=Black guibg=White
au BufNewFile,BufRead *.tpl :set ft=html
set showmatch
highlight Comment ctermfg=darkred
:let loaded_matchparen = 1
noremap :FuzzyFinderMruFile
set makeprg=php\ -l\ %
set errorformat=%m\ in\ %f\ on\ line\ %l