Skip to content

Instantly share code, notes, and snippets.

View c9s's full-sized avatar

c9s

  • Taipei, Taiwan
  • 01:18 (UTC +08:00)
  • X @c9s
View GitHub Profile
#!/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]
"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
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 = {}
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.
redir! >> out
echoerr "ORZ"
echo "OK"
echo "OKOKOK"
echo readfile('out')
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) )
" 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>
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";
}
=name cpan.vim
=author Cornelius
=version_from vimlib/plugin/cpan.vim
=vim_version >= 7.0
=type plugin
# ~/.gitconfig
[alias]
lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%Creset' --abbrev-commit --date=relative