Vim TIL

From OnnoWiki
Jump to navigation Jump to search

Vim Today I Learned

  • visual replace
 :s/\%Vus/az/g
  • vim repeat last command
 press . 
  • vim search/replace under cursor
 press * under keywords, switch to commandmode
 :%s//replace/g
 blank will filled with latest search