From 10b4e4c120f06ceb63de0bac52538b0267a665d4 Mon Sep 17 00:00:00 2001 From: Tomohiro Nishimura Date: Sun, 18 May 2008 16:30:08 +0900 Subject: [PATCH] add Github command (need cho45 hack : http://subtech.g.hatena.ne.jp/cho45/20080516/1210865714) --- git-support.vim | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/git-support.vim b/git-support.vim index 7a27977..20782e1 100644 --- a/git-support.vim +++ b/git-support.vim @@ -1,4 +1,7 @@ +" TODO: 別のディレクトリにいる時でも正常に動作するようにする。 +" cdすれば良いだけなので近いうちにやる + command Gitinit :!git init command Gitadd :!git add % command Gitcommit :call GitCommit() @@ -6,6 +9,7 @@ command Gitpush :call GitPush() command Gitstatus :!git status command Gitdiff :!git diff command Gitlog :!git log +command Github :!git hub nmap gi :Gitinit nmap ga :Gitadd @@ -14,16 +18,11 @@ nmap gp :Gitpush nmap gs :Gitstatus nmap gd :Gitdiff nmap gl :Gitlog +nmap gh :Github func! s:GitCommit() let msg = input('commit message > ') if msg == '' - " TODO: When no commit message processes -" let res = confirm('no commit message?', "&Ok\n&No") -" if res == 1 -" else -" return -" endif echohl ErrorMsg echo 'no commit message' echohl None