September 30, 2011

vim paste and indent

If you use "dd" to cut a line in vim and want to use "p" to paste it to another place. The original indent will remain. To make the intent fit with the destination indent, use ]p.

1 comment:

  1. You may be interested with this: https://github.com/sickill/vim-pasta

    ReplyDelete