I saw that there is an set paste option that allows correct indentation when pasting from the system clipboard in terminal vim, but I miss how to paste from vim’s buffer “inner clipboard” with the p or P command and apply = to the pasted text. Until now I manually do that.
Doing set paste or its inverse doesn’t fix the indentation for the pasted text.
Could you help making a .vimrc mapping for it ? Or is there an built-in option for that ?
Thank you.
Try
]pand]PFrom
:help p: