Whenever I copy some code stanza from doc and paste in pod yaml in vim in inser . . .

Sam:
Whenever I copy some code stanza from doc and paste in pod yaml in vim in insert mode. whole indentation spoils. what is correct way?

R Banerjee:
it is possible that the .vimrc has smart intend set, or some other settings.
When I used to face such an issue, I used to create a blank file ( not a .yaml extension) , paste the code and then mv the file to .yaml ( a txt file normally saves all indents , a yaml autoindents)