Vim Advanced - Day 5

Vim Advanced - Day 5

  • 2020-3-2
  1. g+i insert at the end of last change
  2. Insert Mode: C-o command execute command and return to Insert Mode
  3. g+J: like "J", but without inserting spaces
  4. :reg {arg} show the contents of registers mentioned in {arg}, using spaces to separate multiple args
  5. Y, g+g: yank N lines into a register
  6. ]+p: like p, but adjust indent to current line
  7. [+p: like P, but adjust indent to current line
  8. g+p: like p, but leave cursor after the new text
  9. g+P: like P, but leave cursor after the new text
  10. u undo last change
  11. C-r redo last change
  12. U restore last changed line