Don't use cindent.
Map :W in Vim, write + create directory