Sunday, August 8, 2010

[VIM]Tips and Tricks(1)

Shift

  • In visual mode, > will shift them shiftwidth to the right. You can use . to repeat last command.
  • In normal mode, >> will indent current line.
  • In normal mode, >} will indent all of the lines until the end of the paragraph.
  • In normal mode,>>4 will indent all four lines

Cancel highlight after search

  • :nohl

Switch between upper and lower

  • ~

Go back to last postion

  • ”(double ‘)

No comments:

Post a Comment