Site Tools


vim:start

vim

register

  • "ayy yank current line to a register
  • "ap past from a register
  • ctrl-r a insert and command mode, paste from a register
Special registers
  • " the unnamed register, containing the text of the last delete or yank
  • % the current file name
  • # the alternate file name
  • / the last search pattern
  • : the last command-line
  • - the last small (less than a line) delete
  • . the last inserted text
  • _ blackhole

most recent files

:bro oldfiles or :oldfiles

State tree

:earlier 5m

Redo whatever you added in insert mode

Type something in insert mode, return to normal mode, press Ctrl-A, watch the magic happens.

Pages

vim/start.txt · Last modified: 2020-05-12 by dcai