December 29, 2009

vim tip #2: paste with correct code indention

map p p=`]
 
Suppose you are editing fileA, and you need some contents out of fileB...Use the above map if you would like  the yanked text from fileB to match the indentation of the code in fileA.

1 comment: