Created
August 9, 2010 07:39
-
-
Save gaving/515096 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let g:loaded_gist_vim = 1 | |
| function! ToggleXHTML() | |
| if &ft != 'xhtml' | |
| let s:oldFileType = &ft | |
| set ft=xhtml | |
| else | |
| if exists('s:oldFileType') | |
| let &ft=s:oldFileType | |
| else | |
| echo "No previous filetype" | |
| endif | |
| endif | |
| endfunction | |
| command! ToggleXHTML call ToggleXHTML() | |
| map <silent><Leader>h :call ToggleXHTML()<CR> | |
| nnoremap <silent>K :!start C:/cygwin/bin/cygstart.exe http://php.net/<cword><CR> | |
| if has('win32') | |
| set backupdir=C:\tmp | |
| set directory=C:\tmp | |
| set tags+=C:\gavin\workspace\includes_HEAD\scope\tags | |
| else | |
| set nobackup | |
| set nowritebackup | |
| set noswapfile | |
| endif | |
| set fileformats=unix,dos | |
| map <A-]> :vsp <CR>:exec("tag ".expand("<cword>"))<CR> | |
| nmap s ysw | |
| nmap S ysW | |
| vmap <Leader>S :s/,/, | |
| /g<CR> | |
| " noremap <Backspace> <C-y> | |
| " noremap <Return> <C-e> | |
| " noremap ; : | |
| " noremap , ; | |
| " colorscheme bclear | |
| " inoremap <C-P> <ESC>:call PhpDocSingle()<CR>i | |
| " nnoremap <C-P> :call PhpDocSingle()<CR> | |
| " vnoremap <C-P> :call PhpDocRange()<CR> | |
| nmap <right> <nop> | |
| nmap <left> <nop> | |
| nmap <up> <PageUp> | |
| nmap <down> <PageDown> | |
| imap <right> <nop> | |
| imap <left> <nop> | |
| imap <up> <PageUp> | |
| imap <down> <PageDown> | |
| map <A-p> p`[v`]= | |
| set wildignore+=*.toc,*.aux,*.dvi,*.log | |
| let g:dbext_default_DBI_orientation = 'vertical' | |
| let g:dbext_default_window_use_horiz = 0 | |
| let g:dbext_default_window_width=80 | |
| command! FixPageShortTag %s/<?=$PAGE?>/<?php echo $PAGE; ?>/g | |
| command! FixPageSwapType %s/\(src=".*"\) \(type=".*"\)>/\2 \1>/g | |
| command! UnmangleFile normal ggVG=<Leader>dtw | |
| let g:fuf_file_exclude = '\v\~$|CVS|\.(o|exe|bak|swp)$|(^|[/\\])\.(hg|git|bzr)($|[/\\])' | |
| let g:fuf_abbrevMap = { | |
| \ "^scope:" : [ | |
| \ "C:/wamp/www/scope_HEAD/**/", | |
| \ "C:/wamp/www/includes_HEAD/scope/**/", | |
| \ ], | |
| \ } | |
| " Default values | |
| let g:pdv_cfg_Type = "mixed" | |
| let g:pdv_cfg_Package = "" | |
| let g:pdv_cfg_Version = "1.0" | |
| let g:pdv_cfg_License = "" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment