Our project normally uses 'strip-trailing-spaces' on Save. However, one file type we use needs each line to end in a space. I created a simple macro that seems to work OK to save w/this parameter off and then reset it:
_command save_wo_strip()
{
def_save_options='... -S ...';
execute('save','');
def_save_options='... +S ...';
return(0);
}
I couldn't find what parameter to change, so I started by recording the steps and then cutting out what I supposed were unnecessary steps. Is there a better way?
More importantly, is there a way to make this the way all files with a certain extension are saved automatically?