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
| diagram { | |
| default_fontsize = 13; // default value is 11 | |
| default_linecolor = "#999"; // default value is black | |
| node_width = 64; // default value is 128 | |
| node_height = 20; // default value is 40 | |
| span_width = 16; // default value is 64 | |
| span_height = 10; // default value is 40 | |
| // classes for node. | |
| class folder [color = "#fc0", linecolor = "#c90"]; |
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
| " Ctags (patch): http://designtomarkup.com/vim/taglist-ctags-css-patch | |
| " Tagbar : https://github.com/majutsushi/tagbar | |
| " Screenshot : http://twitpic.com/7zq4d7 | |
| "Tagbar | |
| noremap <silent> <Leader>t :<C-u>TagbarToggle<CR> | |
| let g:tagbar_type_css = { | |
| \ 'ctagstype' : 'Css', | |
| \ 'kinds' : [ |
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
| # keyword plugin | |
| # ==== | |
| # | |
| # config example: | |
| # | |
| # Earthquake.config[:keyword] = {:pattern => /ruby|rails|earthquake/i} | |
| # | |
| Earthquake.init do | |
| _ = config[:keyword] ||= {} | |
| _[:notify] = true if _[:notify].nil? |
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
| call Pl#Statusline( | |
| \ Pl#Match('bufname("%")', '^\*unite\* - .*\@\d+$'), | |
| \ | |
| \ Pl#Segment(' %{"Unite"} ', | |
| \ Pl#HiCurrent( Pl#FG(231), Pl#BG(240), Pl#Attr('bold')), | |
| \ Pl#HiInsert( Pl#FG(231), Pl#BG( 31), Pl#Attr('bold')), | |
| \ Pl#HiNonCurrent(Pl#FG(244), Pl#BG(234), Pl#Attr('bold')) | |
| \ ), | |
| \ | |
| \ Pl#Segment('%< %{substitute(bufname("%"), "\^\\v\\*unite\\* - \(\.\+\)\\@\\d\+\$", "\\u\\1", "")} list', |
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
| autocmd BufFilePost \[ref-*:*\] call Pl#UpdateStatusline(1) | |
| call Pl#Statusline( | |
| \ Pl#Match('bufname("%")', '^\[ref-(.+):(.*)\]$'), | |
| \ | |
| \ Pl#Segment(' %{"Ref"} ', | |
| \ Pl#HiCurrent( Pl#FG(231), Pl#BG(240), Pl#Attr('bold')), | |
| \ Pl#HiInsert( Pl#FG(231), Pl#BG( 31), Pl#Attr('bold')), | |
| \ Pl#HiNonCurrent(Pl#FG(244), Pl#BG(234), Pl#Attr('bold')) | |
| \ ), |
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
| My Vim files have moved to https://github.com/Phize/vim |
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
| " return regexp pattern that matches a comment based on commentstring. | |
| function! s:getCommentStringPattern() | |
| let pattern = escape(&commentstring, '^$[].*\~ ') | |
| let pattern = substitute(pattern, '%s', '.*', 'g') | |
| return pattern | |
| endfunction | |
| " align comment(s) based on commentstring. | |
| autocmd vimrc-autocmd BufEnter * |
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
| " ************************************************** | |
| " Gist {{{ | |
| " ************************************************** | |
| " dictionary of Gist accounts. | |
| let g:gist_accounts = { | |
| \ 'user1': { | |
| \ 'password': 'password' | |
| \ }, | |
| \ 'user2': { | |
| \ 'password': 'password' |
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 git_repository_basename() { | |
| local _repository_basename | |
| if [ $(git rev-parse --is-bare-repository) = 'true' ]; then | |
| _repository_basename=$(basename $(git rev-parse --show-toplevel)) | |
| _repository_basename=${_repository_basename%.git} | |
| else | |
| _repository_basename=$(basename $(readlink -nf $(git rev-parse --show-toplevel))) | |
| fi |
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 phptal_tales_notEmpty($src, $nothrow) { | |
| $src = trim($src); | |
| if (ctype_alnum($src)) return 'isset($ctx->' . $src . ') && "" !=== $ctx->' . $src; | |
| return '(null !== ($path = $ctx->path($ctx,' . PHPTAL_Php_TalesInternal::string($src) . ', true)) && "" !== $path)'; | |
| } |