Wednesday, March 10, 2010

Another vim tip lists

Vim tips

  • d:
    • dw: delete the word from current position until next word, including the space
    • de: similar to dw, but do not include the space
    • d$: delete the content from current position to the end of the line.
    • d0: delete the content from current position to the beginning of the line.
  • c
    • cw / ce: has the same function to change the word from current position, the space is reserved, equal to de + i.
    • c$ : change the content from current position to the end of the line, equal to d$ + i.
    • c0: change the content from the beginning of the line to current position, equal to d0 + i .
  • f/F; t/T
    • fx: find single character in the line, f forward and F backward
    • tx/Tx: is similar to f/F, but move to the character before the searching character.
    • ; repeat searching forward, , repeat searching backward


No comments: