vim

vim

Posted by liangfei on 2018-01-22

Command-Line Mode

Tip 27 Meet Vim’s Command Line

  • :[range]delete [x]
  • :[range]yank [x]
  • :[line]put [x]
  • :[range]copy {address}
  • :[range]move {address}
  • :[range]join
  • :[range]normal {commands}
  • :[range]substitue/{pattern}/{string}/[flags]
  • :[range]global/{pattern}/[cmd]
  • :edit/:write
  • :tabnew
  • :split
  • :prev/:next
  • :bprev/:bnext
  • :h ex-cmd-index

Tip 28 Execute a Command on One or More Consecutive Lines

  • :print
  • :delete
  • :join
  • :substitute
  • :normal
  • :3 <=> 3G
  • :3d <=> 3G dd
  • :{start},{end}
  • . = the current line
  • $ = the end line
  • % = all the lines

欢迎扫码关注 老梁写代码 微信公众号