Skip to content

Instantly share code, notes, and snippets.

if has("win32")
set guifont=Courier_New:h12:cANSI
"set guifontwide=YouYuan:h11:cGB2312
endif
Index: taglist.vim
===================================================================
RCS file: /cygdrive/d/cvsroot/docu/script/vim/taglist/taglist.vim,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 taglist.vim
--- taglist.vim 13 Mar 2009 04:16:54 -0000 1.1.1.1
+++ taglist.vim 24 Mar 2010 14:27:57 -0000
@@ -103,6 +103,9 @@ if !exists('loaded_taglist')
endif
endif
--langdef=html
--langmap=html:.htm.html
--regex-html=/<h1[^>]*>(.*)<\/h1>/\1/h,header/
--regex-html=/<h2[^>]*>(.*)<\/h2>/. \1/h,header/
--regex-html=/<h3[^>]*>(.*)<\/h3>/. \1/h,header/
--regex-html=/<h4[^>]*>(.*)<\/h4>/. \1/h,header/
--regex-html=/<h5[^>]*>(.*)<\/h5>/. \1/h,header/
--regex-html=/<h6[^>]*>(.*)<\/h6>/. \1/h,header/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id[ \t]*=[ \t]*'([^']+)'/\1#\2/o,object/
--regex-html=/<([a-zA-Z][a-zA-Z0-9]*)[^>]*[ \t]+id[ \t]*=[ \t]*"([^"]+)"/\1#\2/o,object/
--langdef=javascript
--langmap=javascript:.js
--regex-javascript=/([A-Za-z0-9._$]+)[ \t]*[:=][ \t]*\{/\1/o,object/
--regex-javascript=/([A-Za-z0-9._$()]+)[ \t]*[:=][ \t]*function[ \t]*\(([A-Za-z0-9_$, \t]*)\)/\1(\2)/f,function/
--regex-javascript=/function[ \t]*([A-Za-z0-9._$]+)[ \t]*\(([A-Za-z0-9$_, \t]*)\)/\1(\2)/f,function/
--langdef=wiki
--langmap=wiki:.wiki
--regex-wiki=/^=[ \t]+(.+)[ \t]+=$/\1/h,header/
--regex-wiki=/^==[ \t]+(.+)[ \t]+==$/. \1/h,header/
--regex-wiki=/^===[ \t]+(.+)[ \t]+===$/. \1/h,header/
--regex-wiki=/^====[ \t]+(.+)[ \t]+====$/. \1/h,header/
--regex-wiki=/^=====[ \t]+(.+)[ \t]+=====$/. \1/h,header/
--regex-wiki=/^======[ \t]+(.+)[ \t]+======$/. \1/h,header/
" cmdhere plugin for NERDTree.
" put this in $VIM/vimfiles/nerdtree_plugin/cmdhere.vim
" @author 闲耘™ (hotoo.cn[AT]gmail.com)
" @version 1.0 2010/07/20
if exists("g:loaded_nerdtree_cmdhere")
finish
endif
let g:loaded_nerdtree_cmdhere = 1
" open fiel in system file explorer plugin for NERDTree.
" put this in $VIM/vimfiles/nerdtree_plugin/fileexplorer.vim
" @author 闲耘™ (hotoo.cn[AT]gmail.com)
" @version 1.0 2010/07/20
if exists("g:loaded_nerdtree_fileexplorer")
finish
endif
let g:loaded_nerdtree_fileexplorer = 1
imap <Esc> <c-r>=CheckEsc()<cr>
function! CheckEsc()
if(pumvisible())
return "\<Left>\<Right>"
else
return "\<Esc>"
endif
endfunction
--- C:/Documents and Settings/wb-tianliang/My Documents/下载/csspretty.vim Wed Jul 21 14:25:29 2010
+++ D:/Vim/vimfiles/ftplugin/css/csspretty.vim Wed Jul 21 14:59:04 2010
@@ -30,7 +30,7 @@
" generates whitespace
function! Whitespace(indent)
- let tabstop = 3
+ let tabstop = &ts
return repeat(' ', a:indent * tabstop)
--- C:/Documents and Settings/wb-tianliang/My Documents/下载/calendar.vim Thu Jul 22 12:22:37 2010
+++ D:/Vim/vimfiles/plugin/calendar.vim Thu Jul 22 12:21:37 2010
@@ -1191,7 +1191,21 @@
let vbufnr = bufnr('__Calendar')
" load the file
- exe "sp " . sfile
+ if winnr('#') == 0
+ if a:dir == "V"
+ exe "vsplit " . sfile