Hi Bram Moolenaar, you wrote: > > Apparently when you have 'expandtab' set then the copied tab is expanded > into spaces. I suppose you have set this combination of option values > to be able to have tabs copied and only when you press <Tab> to add > spaces. > > Let's call this a bug. >
Yes, I would like VIM to help me to preserve original indentation as much as possible when this option is set. From the source code it also seems to me that this option works only when autoindent mode is used (not cindent, for example). The documentation seems to say nothing about this limitation. -- Alexei Alexandrov