learn
This is an old revision of the document!
Table of Contents
Learn
Things to learn through repetition.
Git
See git for general notes.
fixup and squash for appending fixes to commits you already made.
git commit –fixup <commit>
: automatically marks your commit as a fix of a previous commitgit rebase -i –autosquash
: automatically organize merging of these fixup commits and associated normal commits
stash for stashing your local changes away. You can push
and pop
stashes.
Vim
Autocomplete
Command | Notes |
---|---|
c-p , c-n | Autocomplete Previous or Next match, Also navigate completion menu. |
c-y , c-e | Accept or cancel the autocompletion |
c-x,c-] , c-x,c-o | Autocomplete from tags or from Omnicomplete. Close with c-w,c-z or :pc |
Navigation
Command | Notes |
---|---|
c-e | Scroll down (text goes up) |
zz | Scroll current line to center. |
c-y | Scroll up (text goes down) |
Command | Notes |
---|---|
[[ | Go to previous “{” on first column. (]] goes to next one.) |
[{ | Go to enclosing “{” |
]} | Go to enclosing “}” |
{ | Go to previous blank line |
} | Go to next blank line |
learn.1656365943.txt.gz · Last modified: 2023/04/12 20:44 (external edit)