A personal curation of commands that I found worth noting.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
459 B

:set paste " allows correct pasting into vim when auto-indent is on.
" marks
mX " creates a mark X at current context (where X is [a-zA-Z]).
'X " go to mark X.
" folding
:set foldmethod=indent " select folding method (manual/indent...).
za " toggles openong/closing of fold under cursor.
zd " delete fold under cursor.
vzf " creates a fold for visually selected lines (requires foldmeth=manual).
zk " jump to previous fold.
zj " jump to next fold.