You can use :x
or ZZ
to write and quit instead of :wq
.
Use [count]
ctrl+e to scroll the window downwards [count]
lines. [count]
ctrl+y to scroll upwards.
Really usefull is ctrl+d to scroll the half page down and ctrl+u to scroll half the page up. As a side note: "half the page" is only the default. You can use set scroll=[count]
to define this behaviour.
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 | |
# This way you can customize which branches should be skipped when | |
# prepending commit message. | |
if [ -z "$BRANCHES_TO_SKIP" ]; then | |
BRANCHES_TO_SKIP=(master develop test) | |
fi | |
BRANCH_NAME=$(git symbolic-ref --short HEAD) | |
BRANCH_NAME="${BRANCH_NAME##*/}" |
NewerOlder