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
| 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; | |
| } |
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
| 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(".") |
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
| 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 |
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
| " [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 |
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
| 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 |
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
| 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>,= |
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
| function! vimwiki#wikigoto(key) | |
| call s:edit_file(':e', | |
| \ VimwikiGet('path'). | |
| \ a:key. | |
| \ VimwikiGet('ext')) | |
| endfunction |
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
| [diff] | |
| external = git_diff_wrapper.bat | |
| [pager] | |
| diff = |
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
| 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] ); |
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
| location.replace( | |
| location.href.replace(/^https?:\/\/hotoo\.googlecode\.com\/svn\//i, | |
| "http://hotoo.github.com/") | |
| ); |