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
#!/bin/bash | |
# usage: | |
# git_import.sh init | |
# git_import.sh addkey mygitkey | |
# | |
# cd git/your-project | |
# git_import.sh | |
user=[your user] | |
host=[your host] |
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
"set wildmode=full,list | |
"set wildmode=list:full | |
set wildmode=longest,list | |
set wildignore+=*.o,*.a,*.so,*.obj,*.exe,*.lib,*.ncb,*.opt,*.plg,.svn,.git |
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
fun! PerlCompletionBehavior() | |
let behavs = {'perl':[]} | |
call add(behavs.perl, { | |
\ 'command' : "\<C-x>\<C-o>", | |
\ 'pattern' : printf('\w->\k\{%d,}$',1), | |
\ 'repeat' : 0, | |
\ }) | |
return behavs | |
endf | |
let g:acp_behavior = {} |
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
DBD::Pg::st execute failed: ERROR: database "aiink_pdf_exporternctionalbuywithoutcoupon94d78b15" is being accessed by other users | |
DETAIL: There are 1 other session(s) using the database. at /Users/c9s/svn_working/jifty-dbi/lib/Jifty/DBI/Handle.pm line 571. | |
WARN - Error dropping database: Couldn't execute the query 'DROP DATABASE aiink_pdf_exporternctionalbuywithoutcoupon94d78b15'ERROR: database "aiink_pdf_exporternctionalbuywithoutcoupon94d78b15" is being accessed by other users | |
DETAIL: There are 1 other session(s) using the database. at /Users/c9s/svn_working/jifty/lib/Jifty/Script/Schema.pm line 693. |
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
redir! >> out | |
echoerr "ORZ" | |
echo "OK" | |
echo "OKOKOK" | |
echo readfile('out') |
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
cal ut#init({ 'plan':6 , 'verbose':2 }) " verbose option helps you debug your vim script | |
cal ut#list_ok( [ 1 , 2 , 3 ] ) | |
runtime vimlib/autoload/libperl.vim | |
cal ut#list_ok( libperl#get_cpan_module_list(0) ) | |
cal ut#list_ok( libperl#get_cpan_module_list(1) ) | |
cal ut#list_ok( libperl#get_currentlib_cpan_module_list(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
" ftplugin/cobol.vim: | |
nnoremap <silent> <buffer> >> :call CobolIndentBlock(1)<CR> | |
nnoremap <silent> <buffer> << :call CobolIndentBlock(-1)<CR> | |
vnoremap <silent> <buffer> > :call CobolIndentBlock(v:count1)<CR> | |
vnoremap <silent> <buffer> < :call CobolIndentBlock(-v:count1)<CR> | |
inoremap <silent> <buffer> <C-T> <C-R>=<SID>IncreaseIndent()<CR><C-R>=<SID>RestoreShiftwidth()<CR> | |
inoremap <silent> <buffer> <C-D> <C-R>=<SID>DecreaseIndent()<CR><C-R>=<SID>RestoreShiftwidth()<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
package SomeThing; | |
use base qw/Class::Accessor::Fast/; | |
__PACKAGE__->mk_accessors(qw(this_is_accessor)); | |
use overload q{""} => 'this_is_accessor'; | |
# use overload q{""} => 'content'; | |
sub content { | |
return "orz"; | |
} |
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
=name cpan.vim | |
=author Cornelius | |
=version_from vimlib/plugin/cpan.vim | |
=vim_version >= 7.0 | |
=type plugin |
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
# ~/.gitconfig | |
[alias] | |
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative |