When I have some text indented as follows (like
b variables assignment):
if(condition) a = 1; b = 2; end
and I want to paste
b block somewhere outside of the
if block, i.e just after it, vim adds the indentation starting from the second line of visual selection, resulting:
a = 1; b = 1;
Does exist such an option that don't expand the indentation (better said that maintains relative column alignment for each line) when text is pasted, without using a custom function ?
EDIT: I mainly use gvim.
I have already tried
set paste and
set nopaste without success.