Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

inoremap jj <ESC>

  • Loading branch information...
commit b6f6dec3e4e018e5b185f5c91700828982b1b4d3 1 parent a1c0226
Tomohito Ozaki authored
Showing with 3 additions and 28 deletions.
  1. +3 −0  .vimrc.moving
  2. +0 −28 bin/git-now
3  .vimrc.moving
View
@@ -99,3 +99,6 @@ function! s:do_git_diff_aware_gf(command)
return a:command
endif
endfunction
+
+" insert mode でjjでesc
+inoremap jj <Esc>
28 bin/git-now
View
@@ -1,28 +0,0 @@
-#!/bin/sh
-
-PREFIX="from now"
-MESSAGE="[${PREFIX}] `date`"
-
-if [ $# -eq 0 ]
-then
- git add -u
- printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F -
-elif [ $1 != "--rebase" ]
-then
- git add $@
- printf "${MESSAGE}\n\n%s" "`git diff --cached`" | git commit -F -
-else
- FIRST_NOW_COMMIT=`git log --pretty=oneline --grep="${PREFIX}" | tail -n 1 | cut -d " " -f 1`
- INITIAL_COMMIT=`git log --pretty=oneline | tail -n 1 | cut -d " " -f 1`
-
- if [ ${FIRST_NOW_COMMIT} != ${INITIAL_COMMIT} ]
- then
- git rebase -i ${FIRST_NOW_COMMIT}^
- else
- WORKING_BRANCH=`git branch -l | grep "*" | cut -d " " -f 2`
-
- git checkout ${FIRST_NOW_COMMIT}
- git commit --amend
- git rebase --onto HEAD ${FIRST_NOW_COMMIT} ${WORKING_BRANCH}
- fi
-fi
Please sign in to comment.
Something went wrong with that request. Please try again.