Skip to content

Instantly share code, notes, and snippets.

div.pane{
border:1px solid #ddd; background:#eee none; padding:3px;
-moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
}
div.pane h4{margin:0; padding:2px 5px;}
div.pane div.pane-bd{
border:1px solid #e6e6e6; background:#fff none;
padding:5px; min-height:240px; height:240px\9;
-moz-border-radius:4px; -khtml-border-radius:4px; -webkit-border-radius:4px; border-radius:4px;
}
function! Jump2PrevDiffText()
let line=line(".")
let idx=col(".")-1
if synIDattr(diff_hlID(line, idx), "name")=="DiffChange" || synIDattr(diff_hlID(line, idx), "name")=="DiffText"
while idx>0
if synIDattr(diff_hlID(line, idx), "name")=="DiffText" && synIDattr(diff_hlID(line, idx-1), "name")!="DiffText"
call setpos(".", [0,line,idx])
break
elseif idx==1
let line=line(".")
function! Jump2NextDiffText(dir)
if a:dir=="prev"
exec "normal [c"
elseif a:dir=="next"
exec "normal ]c"
endif
if synIDattr(diff_hlID(".", col(".")), "name")=="DiffChange"
let line=line(".")
let cols=col("$")-1
let idx=1
" [count]<Space> key in normal model.
nmap <space> :<C-U>call NormalSpace()<cr>
function! NormalSpace()
let col=col(".")-1
let text=getline(".")
call setline(line("."), strpart(text,0,col).repeat(" ", v:count1).strpart(text,col))
exec "normal ".v:count1."l"
endfunction
if &diff
let g:origCursorPos=getpos('.')
autocmd WinEnter * :call setpos('.', g:origCursorPos)
autocmd WinLeave * :let g:origCursorPos=getpos('.')
nmap <F7> [c
nmap <F8> ]c
else
map <F7> :cp<cr>
map <F8> :cn<cr>
endif
map <leader>.fcss :%s/;\([a-z\*\_]\)/;\r\1/g<cr>:%s/\(\w\){\([^\r]\)/\1\ {\r\2/g<cr>:%s/;}/;\r}/<cr>,=
map <leader>.fcss
:%s/;\([a-z\*\_]\)/;\r\1/g<cr>
:%s/\(\w\){\([^\r]\)/\1\ {\r\2/g<cr>
:%s/;}/;\r}/<cr>,=
function! vimwiki#wikigoto(key)
call s:edit_file(':e',
\ VimwikiGet('path').
\ a:key.
\ VimwikiGet('ext'))
endfunction
[diff]
external = git_diff_wrapper.bat
[pager]
diff =
char a2 = { d }
char a3 = {e, f, g }
for ( i=0; i<3; i++ )
{
for ( j=0; j<1; j++ )
{
for ( k=0; k<3; k++ )
{
print ( a1[i], a2[j], a3[k] );
location.replace(
location.href.replace(/^https?:\/\/hotoo\.googlecode\.com\/svn\//i,
"http://hotoo.github.com/")
);