Use :sp
to split the current window in two (:vs
for vertical split).
Add the following mapping commands to your .vimrc
for easier split navigation.
"easy split navigation
nnoremap <C-J> <C-W><C-J>
nnoremap
#!/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##*/}" |
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.
Use J
in NERDTree to jump to the last node of the directory in the current tree depth (very usefull for the migrations directory).
I highly recommend checking out https://github.com/scrooloose/nerdtree/blob/master/doc/NERDTree.txt if you are using NERDTree.